Pol  Revision:3cfda13
Pol::Clib::Logging::LogFacility Class Reference

#include <logfacility.h>

+ Inheritance diagram for Pol::Clib::Logging::LogFacility:

Classes

class  LogWorker
 

Public Member Functions

 LogFacility ()
 
 ~LogFacility ()
 
void closeFlexLog (const std::string &id)
 
void deinitializeStartLog ()
 
void disableDebugLog ()
 
std::string registerFlexLogger (const std::string &logfilename, bool open_timestamp)
 
void registerSink (LogSink *sink)
 
template<typename Sink >
void save (fmt::Writer *message, const std::string &id)
 
void wait_for_empty_queue ()
 

Static Public Attributes

static bool _vsDebuggerPresent = false
 

Private Attributes

std::vector< LogSink * > _registered_sinks
 
std::unique_ptr< LogWorker_worker
 

Detailed Description

Definition at line 140 of file logfacility.h.

Constructor & Destructor Documentation

Pol::Clib::Logging::LogFacility::LogFacility ( )

Definition at line 125 of file logfacility.cpp.

Pol::Clib::Logging::LogFacility::~LogFacility ( )

Definition at line 128 of file logfacility.cpp.

References _registered_sinks, and _worker.

Member Function Documentation

void Pol::Clib::Logging::LogFacility::closeFlexLog ( const std::string &  id)

Definition at line 172 of file logfacility.cpp.

References _worker.

void Pol::Clib::Logging::LogFacility::deinitializeStartLog ( )

Definition at line 166 of file logfacility.cpp.

References _worker.

void Pol::Clib::Logging::LogFacility::disableDebugLog ( )

Definition at line 160 of file logfacility.cpp.

References _worker.

std::string Pol::Clib::Logging::LogFacility::registerFlexLogger ( const std::string &  logfilename,
bool  open_timestamp 
)

Definition at line 179 of file logfacility.cpp.

References _worker.

void Pol::Clib::Logging::LogFacility::registerSink ( LogSink sink)

Definition at line 154 of file logfacility.cpp.

References _registered_sinks.

Referenced by Pol::Clib::Logging::getSink().

template<typename Sink >
void Pol::Clib::Logging::LogFacility::save ( fmt::Writer *  message,
const std::string &  id 
)

Definition at line 138 of file logfacility.cpp.

References _worker.

Referenced by Pol::Clib::Logging::Message< Sink >::~Message().

Member Data Documentation

std::vector<LogSink*> Pol::Clib::Logging::LogFacility::_registered_sinks
private

Definition at line 159 of file logfacility.h.

Referenced by registerSink(), and ~LogFacility().

bool Pol::Clib::Logging::LogFacility::_vsDebuggerPresent = false
static

Definition at line 154 of file logfacility.h.

std::unique_ptr<LogWorker> Pol::Clib::Logging::LogFacility::_worker
private

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