Functions for hierarchical logging. More...
Functions | |
void | reset () |
void | add_scope (const rutz::fstring &name) |
void | remove_scope (const rutz::fstring &name) |
void | add_obj_scope (const nub::object &obj) |
Add a scope named after the given object's type + id. | |
void | remove_obj_scope (const nub::object &obj) |
Remove the scope named after the given object's type + id. | |
void | set_log_filename (const rutz::fstring &filename) |
Specify the name of a file to which log info should be appended. | |
void | copy_to_stdout (bool shouldcopy) |
Specify whether to copy log output to stdout (default = yes). |
Functions for hierarchical logging.
void nub::logging::add_obj_scope | ( | const nub::object & | obj | ) |
Add a scope named after the given object's type + id.
Definition at line 130 of file log.cc.
References log(), rutz::sfmt(), and nub::object::unique_name().
void nub::logging::copy_to_stdout | ( | bool | shouldcopy | ) |
void nub::logging::remove_obj_scope | ( | const nub::object & | obj | ) |
Remove the scope named after the given object's type + id.
Definition at line 141 of file log.cc.
References rutz::fstring::c_str(), log(), rutz::sfmt(), and nub::object::unique_name().
void nub::logging::set_log_filename | ( | const rutz::fstring & | filename | ) |
Specify the name of a file to which log info should be appended.
Definition at line 152 of file log.cc.
References rutz::fstring::c_str(), and rutz::shared_ptr< T >::swap().