OpFlex Framework  1.7.0
opflex::logging::StdOutLogHandler Class Reference

An OFLogHandler that simply logs to standard output. More...

#include <opflex/logging/StdOutLogHandler.h>

Inheritance diagram for opflex::logging::StdOutLogHandler:
opflex::logging::OFLogHandler

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 OFLogHandlergetHandler () __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.
 

Detailed Description

An OFLogHandler that simply logs to standard output.

Constructor & Destructor Documentation

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.

Parameters
logLevelthe minimum log level

Member Function Documentation

virtual void opflex::logging::StdOutLogHandler::handleMessage ( const std::string &  file,
const int  line,
const std::string &  function,
const Level  level,
const std::string &  message 
)
virtual

Process a single log message.

This file is called synchronously from the thread that is doing the logging and is unsynchronized.

Parameters
filethe file that performs the logging
linethe line number for the log message
functionthe name of the function that's performing the logging
levelthe log level of the log message
messagethe formatted message to log

Implements opflex::logging::OFLogHandler.


The documentation for this class was generated from the following file: