15#ifndef OPFLEX_LOGGING_OFLOGHANDLER_H
16#define OPFLEX_LOGGING_OFLOGHANDLER_H
84 __attribute__((no_instrument_function));
87 __attribute__((no_instrument_function));
103 const std::
string& function,
105 const std::
string& message) = 0;
114 __attribute__((no_instrument_function));
124 __attribute__((no_instrument_function));
133 __attribute__((no_instrument_function));
OFLogHandler(Level logLevel) __attribute__((no_instrument_function))
Allocate a log handler that will log any messages with equal or greater severity than the specified l...
static void registerHandler(OFLogHandler &handler) __attribute__((no_instrument_function))
Register a custom handler as the log handler.
Level
Log levels for OpFlex framework logging.
Definition OFLogHandler.h:58
static OFLogHandler * getHandler() __attribute__((no_instrument_function))
Get the currently-active log handler.
Level logLevel_
The log level for this logger.
Definition OFLogHandler.h:139
virtual void handleMessage(const std::string &file, const int line, const std::string &function, const Level level, const std::string &message)=0
Process a single log message.
virtual bool shouldEmit(const Level level) __attribute__((no_instrument_function))
Check whether we should attempt to log at the given log level.