Public Member Functions

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

Public Attributes

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
 

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)
inline

◆ log() [2/2]

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

Member Data Documentation

◆ _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

◆ _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.