MercuryDPM
Alpha
|
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 |
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.
std::function<void(std::string, std::string)> LoggerOutput::onDebug |
Definition at line 190 of file Logger.h.
Referenced by Logger< L, ASSERTS >::operator()().
std::function<void(std::string, std::string)> LoggerOutput::onError |
Definition at line 186 of file Logger.h.
Referenced by Logger< L, ASSERTS >::operator()().
std::function<void(std::string, std::string)> LoggerOutput::onFatal |
Definition at line 185 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 188 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 189 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 187 of file Logger.h.
Referenced by Logger< L, ASSERTS >::operator()().