Public Member Functions

 log_lib ()
 
virtual ~log_lib ()
 
bool log (Logger::Level requested_level) const
 
void log (Logger::Level requested_level, const std::string &fmtMsg)
 

Public Attributes

std::string _console_prefix = ""
 
bool _log_to_console = false
 
bool _log_to_file = false
 
Logger::Level _log_level = Logger::Level::Info
 
std::string _str_requested_level = "[INFO]"
 
Logger::Level _last_requested_level = Logger::Level::Info
 
std::ofstream _file
 
std::mutex _mutex
 

Constructor & Destructor Documentation

◆ log_lib()

log_lib::log_lib ( )
inline

◆ ~log_lib()

virtual log_lib::~log_lib ( )
inlinevirtual

Member Function Documentation

◆ log() [1/2]

bool log_lib::log ( Logger::Level  requested_level) const
inline

◆ log() [2/2]

void log_lib::log ( Logger::Level  requested_level,
const std::string &  fmtMsg 
)
inline

Member Data Documentation

◆ _console_prefix

std::string log_lib::_console_prefix = ""

◆ _file

std::ofstream log_lib::_file

◆ _last_requested_level

Logger::Level log_lib::_last_requested_level = Logger::Level::Info

◆ _log_level

Logger::Level log_lib::_log_level = Logger::Level::Info

◆ _log_to_console

bool log_lib::_log_to_console = false

◆ _log_to_file

bool log_lib::_log_to_file = false

◆ _mutex

std::mutex log_lib::_mutex

◆ _str_requested_level

std::string log_lib::_str_requested_level = "[INFO]"

Distributed under the Apache License, Version 2.0.

See accompanying NOTICE file for details.