MercuryDPM  Beta
 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 140 of file Logger.h.

Member Data Documentation

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

Definition at line 147 of file Logger.h.

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

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

Definition at line 143 of file Logger.h.

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

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

Definition at line 142 of file Logger.h.

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

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

Definition at line 145 of file Logger.h.

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

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

Definition at line 146 of file Logger.h.

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

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

Definition at line 144 of file Logger.h.

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


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