 |
log4cplus
2.0.5
|
Go to the documentation of this file.
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;
239 #endif // LOG4CPLUS_SPI_INTERNAL_LOGGING_EVENT_HEADER_
void swap(InternalLoggingEvent &)
const log4cplus::tstring & getNDC() const
The nested diagnostic context (NDC) of logging event.
LOG4CPLUS_EXPORT MDC & getMDC()
std::basic_string< tchar > tstring
tstring const & getMDC(tstring const &key) const
log4cplus::helpers::Time timestamp
bool ndcCached
Indicates whether or not the NDC has been retrieved.
static unsigned int getDefaultType()
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.
log4cplus::tstring message
bool mdcCached
Indicates whether or not the MDC has been retrieved.
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName()
log4cplus::tstring loggerName
LogLevel getLogLevel() const
LogLevel of logging event.
log4cplus::tstring thread
MappedDiagnosticContextMap const & getContext() const
#define LOG4CPLUS_ATTRIBUTE_DEPRECATED
MappedDiagnosticContextMap const & getMDCCopy() const
const log4cplus::tstring & getThread() const
The name of thread in which this logging event was generated.
const log4cplus::tstring & getFile() const
The is the file where this log statement was written.
const log4cplus::helpers::Time & getTimestamp() const
Time stamp when the event was created.
log4cplus::spi::InternalLoggingEvent & operator=(const log4cplus::spi::InternalLoggingEvent &rhs)
LOG4CPLUS_EXPORT log4cplus::tstring const & getCurrentThreadName2()
The internal representation of logging events.
MappedDiagnosticContextMap mdc
void gatherThreadSpecificData() const
std::map< tstring, tstring > MappedDiagnosticContextMap
log4cplus::tstring const & getFunction() const
log4cplus::tstring const & get() const
Used when printing the diagnostic context.
int getLine() const
The is the line where this log statement was written.
chrono::time_point< Clock, Duration > Time
log4cplus::tstring thread2
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
const log4cplus::tstring & getThread2() const
The alternative name of thread in which this logging event was generated.
LOG4CPLUS_EXPORT NDC & getNDC()
Return a reference to the singleton object.
bool threadCached
Indicates whether or not the Threadname has been retrieved.