Pol  Revision:dd8d5e0
Pol::Clib::Logging Namespace Reference

Classes

class  LogFacility
 
struct  LogFileBehaviour
 
class  LogSink
 
class  LogSink_cerr
 
class  LogSink_cout
 
class  LogSink_debuglog
 
class  LogSink_dual
 
class  LogSink_flexlog
 
class  LogSink_leaklog
 
class  LogSink_pollog
 
class  LogSink_scriptlog
 
class  LogSinkGenericFile
 
class  Message
 

Functions

template<typename Sink >
Sink * getSink ()
 
void initLogging (LogFacility *logger)
 

Variables

static LogFileBehaviour debuglogBehaviour
 
static LogFileBehaviour flexlogBehaviour
 
LogFacilityglobal_logger = nullptr
 
static LogFileBehaviour leaklogBehaviour
 
static LogFileBehaviour pollogBehaviour
 
static LogFileBehaviour scriptlogBehaviour
 
static LogFileBehaviour startlogBehaviour
 

Function Documentation

template<typename Sink >
Sink * Pol::Clib::Logging::getSink ( )

Definition at line 246 of file logfacility.cpp.

References Pol::Clib::Logging::LogFacility::registerSink().

void Pol::Clib::Logging::initLogging ( LogFacility logger)

Definition at line 63 of file logfacility.cpp.

Referenced by Pol::Clib::ProgramMain::start().

Variable Documentation

LogFileBehaviour Pol::Clib::Logging::debuglogBehaviour
static
Initial value:
= {"log/debug", false,
std::ios_base::out | std::ios_base::app, false}

Definition at line 51 of file logfacility.cpp.

LogFileBehaviour Pol::Clib::Logging::flexlogBehaviour
static
Initial value:
= {"",
false, std::ios_base::out | std::ios_base::app, false}

Definition at line 57 of file logfacility.cpp.

LogFileBehaviour Pol::Clib::Logging::leaklogBehaviour
static
Initial value:
= {"log/leak", false,
std::ios_base::out | std::ios_base::app, false}

Definition at line 55 of file logfacility.cpp.

LogFileBehaviour Pol::Clib::Logging::pollogBehaviour
static
Initial value:
= {"log/pol", true, std::ios_base::out | std::ios_base::app,
true}

Definition at line 49 of file logfacility.cpp.

Referenced by Pol::Clib::Logging::LogSink_pollog::deinitialize_startlog().

LogFileBehaviour Pol::Clib::Logging::scriptlogBehaviour
static
Initial value:
= {"log/script", false,
std::ios_base::out | std::ios_base::app, false}

Definition at line 53 of file logfacility.cpp.

LogFileBehaviour Pol::Clib::Logging::startlogBehaviour
static
Initial value:
= {"log/start", false,
std::ios_base::out | std::ios_base::trunc, false}

Definition at line 47 of file logfacility.cpp.