Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

nub::logging Namespace Reference


Detailed Description

Functions for hierarchical logging.


Functions

void reset ()
void add_scope (const fstring &name)
void remove_scope (const 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).


Function Documentation

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 add_scope(), rutz::fstring::c_str(), GVX_TRACE, nub::log(), rutz::sfmt(), and nub::object::unique_name().

void nub::logging::copy_to_stdout bool  shouldcopy  ) 
 

Specify whether to copy log output to stdout (default = yes).

Definition at line 163 of file log.cc.

References GVX_TRACE, and s_copy_to_stdout.

Referenced by Log_Init().

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(), GVX_TRACE, nub::log(), remove_scope(), rutz::sfmt(), and nub::object::unique_name().

void nub::logging::set_log_filename const 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(), GVX_TRACE, out, s_log_fstream, and rutz::shared_ptr< T >::swap().

Referenced by Log_Init().


Generated on Sun Nov 22 13:51:38 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4