24 #ifndef LOG4CPLUS_SPI_INTERNAL_LOGGING_EVENT_HEADER_ 25 #define LOG4CPLUS_SPI_INTERNAL_LOGGING_EVENT_HEADER_ 29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE) 68 const char* filename,
int line,
const char *
function =
nullptr);
98 const char * filename,
int line,
99 const char *
function =
nullptr);
101 void setFunction (
char const * func);
113 virtual unsigned int getType()
const;
118 virtual std::unique_ptr<InternalLoggingEvent> clone()
const;
177 thread2Cached =
true;
203 void gatherThreadSpecificData ()
const;
212 static unsigned int getDefaultType();
239 #endif // LOG4CPLUS_SPI_INTERNAL_LOGGING_EVENT_HEADER_ MappedDiagnosticContextMap const & getMDCCopy() const
log4cplus::helpers::Time timestamp
log4cplus::tstring loggerName
MappedDiagnosticContextMap mdc
The internal representation of logging events.
#define LOG4CPLUS_ATTRIBUTE_DEPRECATED
const log4cplus::tstring & getNDC() const
The nested diagnostic context (NDC) of logging event.
LOG4CPLUS_EXPORT MDC & getMDC()
const log4cplus::tstring & getThread2() const
The alternative name of thread in which this logging event was generated.
MappedDiagnosticContextMap const & getContext() const
int getLine() const
The is the line where this log statement was written.
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName()
bool ndcCached
Indicates whether or not the NDC has been retrieved.
LogLevel getLogLevel() const
LogLevel of logging event.
bool mdcCached
Indicates whether or not the MDC has been retrieved.
const log4cplus::tstring & getFile() const
The is the file where this log statement was written.
chrono::time_point< Clock, Duration > Time
const log4cplus::tstring & getThread() const
The name of thread in which this logging event was generated.
std::map< tstring, tstring > MappedDiagnosticContextMap
log4cplus::tstring thread
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName2()
std::basic_string< tchar > tstring
This header defines the LogLevel type.
log4cplus::tstring thread2
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
log4cplus::tstring message
const log4cplus::tstring & getLoggerName() const
The logger of the logging event.
bool threadCached
Indicates whether or not the Threadname has been retrieved.
log4cplus::tstring const & getFunction() const
LOG4CPLUS_EXPORT NDC & getNDC()
Return a reference to the singleton object.
const log4cplus::helpers::Time & getTimestamp() const
Time stamp when the event was created.
log4cplus::tstring const & get() const
Used when printing the diagnostic context.
This header defined the NDC class.