#include <log.hpp>
Public Member Functions | |
logger (char const *name, int 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 |
int | get_severity () const |
Returns following values depending on the logger: error: 0 warn: 1 info: 2 debug: 3 See also the lg::severity enum. More... | |
std::string | get_name () const |
Private Attributes | |
char const * | name_ |
int | severity_ |
|
inline |
|
inline |
Definition at line 165 of file log.hpp.
References lg::log_domain::domain_.
Referenced by deprecated_message(), and ai::ai_default_rca::get_villages_phase::get_villages().
|
inline |
Definition at line 183 of file log.hpp.
References lg::debug(), lg::err(), lg::general(), lg::get_log_file_path(), lg::get_timespan(), lg::get_timestamp(), lg::info(), game_config::path, lg::precise_timestamps(), lg::sanitize_log(), lg::set_log_file_path(), t, lg::timestamps(), and lg::warn().
|
inline |
Returns following values depending on the logger: error: 0 warn: 1 info: 2 debug: 3 See also the lg::severity enum.
Definition at line 178 of file log.hpp.
Referenced by events::chat_handler::change_logging(), campaignd::command_line::command_line(), commandline_options::commandline_options(), campaignd::server::handle_read_from_fifo(), main(), lg::set_log_domain_severity(), and lg::set_strict_severity().
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 321 of file log.cpp.
References lg::log_domain::domain_, lg::log_in_progress::enable_timestamp(), indent, null_ostream(), output(), lg::log_in_progress::set_auto_newline(), lg::log_in_progress::set_indent(), lg::log_in_progress::set_prefix(), and timestamp.