LoggerOutput Class Reference

Default functions for output generation. More...

#include <Logger.h>

Public Attributes

std::function< void(std::string, std::string, Flusher)> onFatal
 
std::function< void(std::string, std::string, Flusher)> onError
 
std::function< void(std::string, std::string, Flusher)> onWarn
 
std::function< void(std::string, std::string, Flusher)> onInfo
 
std::function< void(std::string, std::string, Flusher)> onVerbose
 
std::function< void(std::string, std::string, Flusher)> 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 module Name, std::string message, Flusher doFlush_);

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

Member Data Documentation

◆ onDebug

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

◆ onError

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

◆ onFatal

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

◆ onInfo

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

◆ onVerbose

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

◆ onWarn

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

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