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;
177 thread2Cached =
true;
MappedDiagnosticContextMap const & getContext() const
log4cplus::tstring const & get() const
Used when printing the diagnostic context.
The internal representation of logging events.
const log4cplus::tstring & getThread2() const
The alternative name of thread in which this logging event was generated.
tstring const & getMDC(tstring const &key) const
log4cplus::tstring message
const log4cplus::tstring & getThread() const
The name of thread in which this logging event was generated.
log4cplus::tstring thread2
const log4cplus::helpers::Time & getTimestamp() const
Time stamp when the event was created.
bool mdcCached
Indicates whether or not the MDC has been retrieved.
bool threadCached
Indicates whether or not the Threadname has been retrieved.
log4cplus::tstring const & getFunction() const
MappedDiagnosticContextMap mdc
void gatherThreadSpecificData() const
InternalLoggingEvent(const log4cplus::tstring &logger, LogLevel loglevel, const log4cplus::tstring &ndc, MappedDiagnosticContextMap const &mdc, const log4cplus::tstring &message, const log4cplus::tstring &thread, log4cplus::helpers::Time time, const log4cplus::tstring &file, int line, const log4cplus::tstring &function=log4cplus::tstring()) LOG4CPLUS_ATTRIBUTE_DEPRECATED
log4cplus::helpers::Time timestamp
void swap(InternalLoggingEvent &)
int getLine() const
The is the line where this log statement was written.
const log4cplus::tstring & getFile() const
The is the file where this log statement was written.
log4cplus::spi::InternalLoggingEvent & operator=(const log4cplus::spi::InternalLoggingEvent &rhs)
log4cplus::tstring loggerName
InternalLoggingEvent(const log4cplus::tstring &logger, LogLevel loglevel, const log4cplus::tstring &message, const char *filename, int line, const char *function=nullptr)
Instantiate a LoggingEvent from the supplied parameters.
LogLevel getLogLevel() const
LogLevel of logging event.
log4cplus::tstring thread
const log4cplus::tstring & getNDC() const
The nested diagnostic context (NDC) of logging event.
bool ndcCached
Indicates whether or not the NDC has been retrieved.
MappedDiagnosticContextMap const & getMDCCopy() const
static unsigned int getDefaultType()
#define LOG4CPLUS_ATTRIBUTE_DEPRECATED
This header defines the LogLevel type.
chrono::time_point< Clock, Duration > Time
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName()
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName2()
LOG4CPLUS_EXPORT NDC & getNDC()
Return a reference to the singleton object.
std::basic_string< tchar > tstring
std::map< tstring, tstring > MappedDiagnosticContextMap
int LogLevel
Defines the minimum set of priorities recognized by the system, that is FATAL_LOG_LEVEL,...
LOG4CPLUS_EXPORT MDC & getMDC()
This header defined the NDC class.