loggers::program_wide_logger Class Reference

A class that provides logging facilities vertically to all of hoople. More...

#include <program_wide_logger.h>

Collaboration diagram for loggers::program_wide_logger:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static loggers::standard_log_baseget ()
 Provided by the startup code within each application for logging.
static loggers::standard_log_baseset (loggers::standard_log_base *new_log)
 replaces the current program-wide logger with the "new_log".

Detailed Description

A class that provides logging facilities vertically to all of hoople.

Provides a per-program logging subsystem that can be used from almost anywhere in the source code. The program wide logger feature is a globally defined object that can be switched out to perform different types of logging. Note: this facility is not thread-safe. The coder must guarantee that the appropriate logger is set up before cranking up a bunch of threads that use logging.

Definition at line 39 of file program_wide_logger.h.


Member Function Documentation

standard_log_base & loggers::program_wide_logger::get (  )  [static]

Provided by the startup code within each application for logging.

This can be used like any base_logger object, but the diagnostic items will be stored into one log file (or other logging mechanism) per program.

Definition at line 24 of file program_wide_logger.cpp.

Referenced by loggers::critical_events::alert_message().

standard_log_base * loggers::program_wide_logger::set ( loggers::standard_log_base new_log  )  [static]

replaces the current program-wide logger with the "new_log".

Definition at line 26 of file program_wide_logger.cpp.

References NIL.


The documentation for this class was generated from the following files:
Generated on Sat Jan 28 04:25:41 2012 for hoople2 project by  doxygen 1.6.3