#include <log.hpp>
Public Member Functions | |
logger (char const *name, severity severity) | |
log_in_progress | operator() (const log_domain &domain, bool show_names=true, bool do_indent=false, bool show_timestamps=true, bool break_strict=true, bool auto_newline=true) const |
bool | dont_log (const log_domain &domain) const |
severity | get_severity () const |
std::string | get_name () const |
Private Attributes | |
char const * | name_ |
severity | severity_ |
|
inline |
|
inline |
Definition at line 215 of file log.hpp.
References lg::log_domain::domain_, and severity_.
Referenced by deprecated_message(), and ai::ai_default_rca::get_villages_phase::get_villages().
|
inline |
|
inline |
Definition at line 220 of file log.hpp.
References severity_.
Referenced by events::chat_handler::change_logging(), campaignd::command_line::command_line(), commandline_options::commandline_options(), campaignd::server::handle_read_from_fifo(), and main().
log_in_progress lg::logger::operator() | ( | const log_domain & | domain, |
bool | show_names = true , |
||
bool | do_indent = false , |
||
bool | show_timestamps = true , |
||
bool | break_strict = true , |
||
bool | auto_newline = true |
||
) | const |
Definition at line 454 of file log.cpp.
References lg::log_domain::domain_, lg::log_in_progress::enable_timestamp(), indent, name_, null_ostream(), output(), lg::log_in_progress::set_auto_newline(), lg::log_in_progress::set_indent(), lg::log_in_progress::set_prefix(), severity_, lg::strict_level_, lg::strict_threw_, and timestamp.
|
private |
Definition at line 208 of file log.hpp.
Referenced by get_name(), and operator()().
|
private |
Definition at line 209 of file log.hpp.
Referenced by dont_log(), get_severity(), and operator()().