|
OpFlex Framework
1.5.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... | |
Public Member Functions inherited from opflex::logging::OFLogHandler | |
| 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 | |
Public Types inherited from opflex::logging::OFLogHandler | |
| enum | Level { TRACE, DEBUG7, DEBUG6, DEBUG5, DEBUG4, DEBUG3, DEBUG2, DEBUG1, DEBUG0, INFO, WARNING, ERROR, FATAL, NO_LOGGING } |
| Log levels for OpFlex framework logging. | |
Static Public Member Functions inherited from opflex::logging::OFLogHandler | |
| 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... | |
Protected Attributes inherited from opflex::logging::OFLogHandler | |
| 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.