MercuryDPM  Trunk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LoggerOutput Class Reference

Default functions for output generation. More...

#include <Logger.h>

Public Attributes

std::function< void(std::string,
std::string)> 
onFatal
 
std::function< void(std::string,
std::string)> 
onError
 
std::function< void(std::string,
std::string)> 
onWarn
 
std::function< void(std::string,
std::string)> 
onInfo
 
std::function< void(std::string,
std::string)> 
onVerbose
 
std::function< void(std::string,
std::string)> 
onDebug
 

Detailed Description

Default functions for output generation.

These handlers will be called on generation of the message. The functions are of signature void (std::string moduleName, std::string message);

These functions may not return but call std::exit() instead. They may also throw any exception to allow code to gracefully recover.

Definition at line 192 of file Logger.h.

Member Data Documentation

std::function<void(std::string, std::string)> LoggerOutput::onDebug

Definition at line 200 of file Logger.h.

Referenced by Logger< L, ASSERTS >::operator()().

std::function<void(std::string, std::string)> LoggerOutput::onError

Definition at line 196 of file Logger.h.

Referenced by Logger< L, ASSERTS >::if(), and Logger< L, ASSERTS >::operator()().

std::function<void(std::string, std::string)> LoggerOutput::onFatal

Definition at line 195 of file Logger.h.

Referenced by DPMBase::constructor(), and Logger< L, ASSERTS >::operator()().

std::function<void(std::string, std::string)> LoggerOutput::onInfo

Definition at line 198 of file Logger.h.

Referenced by Logger< L, ASSERTS >::if(), and Logger< L, ASSERTS >::operator()().

std::function<void(std::string, std::string)> LoggerOutput::onVerbose

Definition at line 199 of file Logger.h.

Referenced by Logger< L, ASSERTS >::if(), and Logger< L, ASSERTS >::operator()().

std::function<void(std::string, std::string)> LoggerOutput::onWarn

Definition at line 197 of file Logger.h.

Referenced by Logger< L, ASSERTS >::if(), and Logger< L, ASSERTS >::operator()().


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