#include <Logger.h>
|
virtual | ~Logger () |
|
void | _setLogLevel (boost::log::trivial::severity_level severity) |
|
void | setConsoleLog (bool enableLog) |
|
void | setFileLog (bool enableLog) |
|
bool | push (boost::log::trivial::severity_level level, std::ostringstream &stream) |
|
void | _setListener (void(*cb)(const std::string &)) |
|
std::ostringstream & | pre (std::ostringstream &stream, boost::log::trivial::severity_level lvl) |
|
std::ostringstream & | aipexceptionPre (std::ostringstream &stream, boost::log::trivial::severity_level lvl, int type) |
|
void | operator() () |
|
|
threadsafe_que< std::string > | mQue |
|
boost::thread | myThread |
|
bool | mRunning |
|
LoggerProps | mProps |
|
void(* | mListener )(const std::string &) = nullptr |
|
boost::log::sources::severity_logger< boost::log::trivial::severity_level > | lg |
|
boost::shared_ptr< boost::log::sinks::synchronous_sink< boost::log::sinks::text_ostream_backend > > | mConsoleSink |
|
boost::shared_ptr< boost::log::sinks::synchronous_sink< boost::log::sinks::text_file_backend > > | mFileSink |
|
◆ ~Logger()
◆ Logger()
◆ _setListener()
void Logger::_setListener |
( |
void(* | cb )(const std::string &) | ) |
|
◆ _setLogLevel()
void Logger::_setLogLevel |
( |
boost::log::trivial::severity_level | severity | ) |
|
◆ aipexceptionPre()
std::ostringstream & Logger::aipexceptionPre |
( |
std::ostringstream & | stream, |
|
|
boost::log::trivial::severity_level | lvl, |
|
|
int | type ) |
◆ getLogger()
Logger * Logger::getLogger |
( |
| ) |
|
|
static |
◆ initBoostLogger()
◆ initLogger()
◆ operator()()
void Logger::operator() |
( |
| ) |
|
◆ pre()
std::ostringstream & Logger::pre |
( |
std::ostringstream & | stream, |
|
|
boost::log::trivial::severity_level | lvl ) |
◆ process()
bool Logger::process |
( |
const std::string & | message | ) |
|
|
private |
◆ push()
bool Logger::push |
( |
boost::log::trivial::severity_level | level, |
|
|
std::ostringstream & | stream ) |
◆ run()
◆ setConsoleLog()
void Logger::setConsoleLog |
( |
bool | enableLog | ) |
|
◆ setFileLog()
void Logger::setFileLog |
( |
bool | enableLog | ) |
|
◆ setListener()
void Logger::setListener |
( |
void(* | cb )(const std::string &) | ) |
|
|
static |
◆ setLogLevel() [1/2]
void Logger::setLogLevel |
( |
boost::log::trivial::severity_level | severity | ) |
|
|
static |
◆ setLogLevel() [2/2]
bool Logger::setLogLevel |
( |
const std::string & | sSeverity | ) |
|
|
static |
◆ instance
boost::shared_ptr< Logger > Logger::instance |
|
staticprivate |
◆ lg
boost::log::sources::severity_logger< boost::log::trivial::severity_level > Logger::lg |
|
private |
◆ logger_mutex
boost::mutex Logger::logger_mutex |
|
staticprivate |
◆ mConsoleSink
boost::shared_ptr< boost::log::sinks::synchronous_sink< boost::log::sinks::text_ostream_backend > > Logger::mConsoleSink |
|
private |
◆ mFileSink
boost::shared_ptr< boost::log::sinks::synchronous_sink< boost::log::sinks::text_file_backend > > Logger::mFileSink |
|
private |
◆ mListener
void(* Logger::mListener) (const std::string &) = nullptr |
|
private |
◆ mProps
◆ mQue
◆ mRunning
◆ myThread
boost::thread Logger::myThread |
|
private |
The documentation for this class was generated from the following files:
- base/include/Logger.h
- base/src/Logger.cpp