OpFlex Framework
1.3.0
|
An OFLogHandler that simply logs to standard output. More...
#include <opflex/logging/StdOutLogHandler.h>
Public Member Functions | |
StdOutLogHandler (Level logLevel) __attribute__((no_instrument_function)) | |
Allocate a log handler that will log any messages with equal or greater severity than the specified log level. More... | |
virtual void | handleMessage (const std::string &file, const int line, const std::string &function, const Level level, const std::string &message) __attribute__((no_instrument_function)) |
Process a single log message. More... | |
![]() | |
OFLogHandler (Level logLevel) __attribute__((no_instrument_function)) | |
Allocate a log handler that will log any messages with equal or greater severity than the specified log level. More... | |
virtual bool | shouldEmit (const Level level) __attribute__((no_instrument_function)) |
Check whether we should attempt to log at the given log level. More... | |
Additional Inherited Members | |
![]() | |
enum | Level { TRACE, DEBUG7, DEBUG6, DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, DEBUG0, INFO, WARNING, ERROR, FATAL, NO_LOGGING } |
Log levels for OpFlex framework logging. | |
![]() | |
static void | registerHandler (OFLogHandler &handler) __attribute__((no_instrument_function)) |
Register a custom handler as the log handler. More... | |
static OFLogHandler * | getHandler () __attribute__((no_instrument_function)) |
Get the currently-active log handler. More... | |
![]() | |
Level | logLevel_ |
The log level for this logger. | |
An OFLogHandler that simply logs to standard output.
opflex::logging::StdOutLogHandler::StdOutLogHandler | ( | Level | logLevel | ) |
Allocate a log handler that will log any messages with equal or greater severity than the specified log level.
logLevel | the minimum log level |
|
virtual |
Process a single log message.
This file is called synchronously from the thread that is doing the logging and is unsynchronized.
file | the file that performs the logging |
line | the line number for the log message |
function | the name of the function that's performing the logging |
level | the log level of the log message |
message | the formatted message to log |
Implements opflex::logging::OFLogHandler.