24 #ifndef LOG4CPLUS_TRACELOGGER_H
25 #define LOG4CPLUS_TRACELOGGER_H
29 #if defined (LOG4CPLUS_HAVE_PRAGMA_ONCE)
57 : logger(std::move (l)), msg(std::move (_msg)), file(_file),
58 function(_function), line(_line)
62 file, line,
function);
69 file, line,
function);
This is the central class in the log4cplus package.
bool isEnabledFor(LogLevel ll) const
Check whether this logger is enabled for a given LogLevel passed as parameter.
void forcedLog(LogLevel ll, const log4cplus::tstring &message, const char *file=LOG4CPLUS_CALLER_FILE(), int line=LOG4CPLUS_CALLER_LINE(), const char *function=LOG4CPLUS_CALLER_FUNCTION()) const
This method creates a new logging event and logs the event without further checks.
This class is used to produce "Trace" logging.
TraceLogger(Logger l, log4cplus::tstring _msg, const char *_file=LOG4CPLUS_CALLER_FILE(), int _line=LOG4CPLUS_CALLER_LINE(), char const *_function=LOG4CPLUS_CALLER_FUNCTION())
#define LOG4CPLUS_TEXT(STRING)
#define LOG4CPLUS_CALLER_FUNCTION()
#define LOG4CPLUS_CALLER_FILE()
#define LOG4CPLUS_CALLER_LINE()
This header defines the Logger class and the logging macros.
std::basic_string< tchar > tstring
const LogLevel TRACE_LOG_LEVEL
The TRACE_LOG_LEVEL LogLevel is used to "trace" entry and exiting of methods.