#include <log.hpp>
The global logger object will be created on the first call to global_logger()
, and will destroy itself when the last log target goes out of scope.
Definition at line 66 of file log.hpp.
Public Types | |
enum | { LOG_LEVEL_NONE = 0, LOG_LEVEL_BASIC = 1, LOG_LEVEL_MEDIUM = 5, LOG_LEVEL_HIGH = 10, LOG_LEVEL_ULTRA = 100 } |
Public Member Functions | |
void | print_line (int log_level, const gsgl::string &) |
void | register_resource (R *) |
void | unregister_resource (R *) |
Static Public Member Functions | |
static logger * | global_instance () |
Reimplemented to enable auto-creation. | |
static void | set_global_log_level (int new_log_level) |
Protected Attributes | |
L | registered_resources |
Private Member Functions | |
logger () | |
virtual | ~logger () |
Static Private Attributes | |
static int | global_log_level = logger::LOG_LEVEL_BASIC |
anonymous enum |
logger | ( | ) | [private] |
Definition at line 59 of file log.cpp.
References ft_stream::out.
Referenced by logger::global_instance().
~logger | ( | ) | [private, virtual] |
logger * global_instance | ( | ) | [static] |
Reimplemented to enable auto-creation.
Reimplemented from global_register.
Definition at line 101 of file log.cpp.
References logger::logger().
Referenced by gsgl::log(), log_target::log_target(), and log_target::~log_target().
void print_line | ( | int | log_level, | |
const gsgl::string & | msg | |||
) |
Definition at line 85 of file log.cpp.
References logger::global_log_level, and global_register::registered_resources.
Referenced by gsgl::log().
void register_resource | ( | R * | r | ) | [inline, inherited] |
Definition at line 83 of file global.hpp.
References global_register::registered_resources.
Referenced by broker_creator::broker_creator(), and log_target::log_target().
void set_global_log_level | ( | int | new_log_level | ) | [static] |
void unregister_resource | ( | R * | r | ) | [inline, inherited] |
Definition at line 99 of file global.hpp.
References global_register::registered_resources.
Referenced by broker_creator::~broker_creator(), and log_target::~log_target().
int global_log_level = logger::LOG_LEVEL_BASIC [static, private] |
Definition at line 69 of file log.hpp.
Referenced by logger::print_line(), and logger::set_global_log_level().
L registered_resources [protected, inherited] |
Definition at line 55 of file global.hpp.
Referenced by broker::create_object(), broker::has_object(), logger::print_line(), global_register::register_resource(), and global_register::unregister_resource().