#include <log.hpp>
Public Member Functions | |
logger (char const *name, int severity) | |
std::ostream & | operator() (log_domain const &domain, bool show_names=true, bool do_indent=false) const |
bool | dont_log (log_domain const &domain) const |
int | get_severity () const |
std::string | get_name () const |
Private Attributes | |
char const * | name_ |
int | severity_ |
|
inline |
|
inline |
Definition at line 122 of file log.hpp.
References lg::log_domain::domain_.
Referenced by ai::ai_default_rca::get_villages_phase::get_villages(), and game_events::t_pump::operator()().
|
inline |
|
inline |
Definition at line 127 of file log.hpp.
References severity_.
Referenced by events::chat_handler::change_logging(), commandline_options::commandline_options(), main(), lg::set_log_domain_severity(), and lg::set_strict_severity().
std::ostream & lg::logger::operator() | ( | log_domain const & | domain, |
bool | show_names = true , |
||
bool | do_indent = false |
||
) | const |
Definition at line 208 of file log.cpp.
References lg::log_domain::domain_, lg::get_timestamp(), i, indent, name_, null_ostream(), output(), precise_timestamp, lg::print_precise_timestamp(), severity_, and timestamp.
|
private |
Definition at line 115 of file log.hpp.
Referenced by get_name(), and operator()().
|
private |
Definition at line 116 of file log.hpp.
Referenced by get_severity(), and operator()().