feisty meow concerns codebase  2.140
loggers::program_wide_logger Class Reference

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

#include <program_wide_logger.h>

Static Public Member Functions

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

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

◆ get()

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 25 of file program_wide_logger.cpp.

◆ set()

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 27 of file program_wide_logger.cpp.

References NULL_POINTER.


The documentation for this class was generated from the following files: