highlighter application  1.1
HCE project utils : highlighter
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HCE::Logger Class Reference

#include <Logger.hpp>

Static Public Member Functions

static void initializeLoggers ()
 < initialize loggers map
static void writeLog (const Poco::Message &msg, const std::string &channel=DEFAULT_LOG_NAME)
 if channel not exists and default channel not set - log message writes to unregister log
static void writeUnregisterLog (const Poco::Message &msg, const std::string &channel)
static void setLevelByChannelName (const std::string &name, const std::string &level)
static void setLevelByChannelName (const std::string &name, const int &level)
static void setLevelForAllChannel (const std::string &level)
static void setLevelForAllChannel (const int &level)
static void off ()
static void on (const int &level=LOGGER_ON_DEFAULT_LEVEL)
static void on (const std::string &level)

Static Public Attributes

static bool alwaysUseDefaultLog = DEFAULT_LOG_ALWAYS_USE_DEF_LOG
 < use the default logger if specified logger does not exist (if "alwaysUseDefaultLog" equals true)

Detailed Description

Definition at line 52 of file Logger.hpp.

Member Function Documentation

void HCE::Logger::initializeLoggers ( )
static

< initialize loggers map

< Returns in range the names of all subkeys under the given key.

< if logger exist in configuration file, change channel

Definition at line 9 of file Logger.cpp.

Here is the caller graph for this function:

void HCE::Logger::off ( )
static

Definition at line 149 of file Logger.cpp.

void HCE::Logger::on ( const int &  level = LOGGER_ON_DEFAULT_LEVEL)
static

Definition at line 157 of file Logger.cpp.

Here is the call graph for this function:

void HCE::Logger::on ( const std::string &  level)
static

Definition at line 153 of file Logger.cpp.

Here is the call graph for this function:

void HCE::Logger::setLevelByChannelName ( const std::string &  name,
const std::string &  level 
)
static

Definition at line 133 of file Logger.cpp.

void HCE::Logger::setLevelByChannelName ( const std::string &  name,
const int &  level 
)
static

Definition at line 129 of file Logger.cpp.

void HCE::Logger::setLevelForAllChannel ( const std::string &  level)
static

Definition at line 143 of file Logger.cpp.

Here is the caller graph for this function:

void HCE::Logger::setLevelForAllChannel ( const int &  level)
static

Definition at line 139 of file Logger.cpp.

void HCE::Logger::writeLog ( const Poco::Message &  msg,
const std::string &  channel = DEFAULT_LOG_NAME 
)
static

if channel not exists and default channel not set - log message writes to unregister log

Definition at line 101 of file Logger.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void HCE::Logger::writeUnregisterLog ( const Poco::Message &  msg,
const std::string &  channel 
)
static

Definition at line 124 of file Logger.cpp.

Here is the caller graph for this function:

Member Data Documentation

bool HCE::Logger::alwaysUseDefaultLog = DEFAULT_LOG_ALWAYS_USE_DEF_LOG
static

< use the default logger if specified logger does not exist (if "alwaysUseDefaultLog" equals true)

writing msg to setted channel

Definition at line 68 of file Logger.hpp.


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