program_wide_logger.cpp File Reference

#include "console_logger.h"
#include "file_logger.h"
#include "locked_logger.h"
#include "null_logger.h"
#include <basis/callstack_tracker.h>
#include <basis/function.h>
#include <basis/log_base.h>
#include <basis/program_wide_logger.h>
#include <data_struct/static_memory_gremlin.h>
#include <opsystem/critical_events.h>
#include <stdio.h>

Include dependency graph for program_wide_logger.cpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

locked_logger BASIS_EXTERN & real_program_wide_logger ()
 allows the underlying logging facility to be accessed.
log_base BASIS_EXTERN & program_wide_logger ()
 Provided by the startup code within each application for logging.
log_base BASIS_EXTERN * retask_program_wide_logger (log_base *new_logger)
 Changes the log_base object used for this program's logging.


Function Documentation

log_base BASIS_EXTERN& program_wide_logger (  ) 

Provided by the startup code within each application for logging.

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

Definition at line 44 of file program_wide_logger.cpp.

References real_program_wide_logger(), SET_DEFAULT_NULL_LOGGER, utility::timestamp(), and critical_events::write_to_critical_events().

Referenced by guards::alert_message(), infoton::check_classifier(), connection_table::complain_missing_connection(), nodes::path::generate_path(), service_root::install(), service_root::instruct(), application_shell::log(), service_root::log_event(), application_shell::logger(), version_ini::one_stop_version_stamp(), nechung_oracle::pick_random(), query_handler::print_row(), service_root::remove(), query_handler::show_this_row(), service_root::standalone(), common_database_support::syb_err_handler(), common_database_support::syb_msg_handler(), and version_ini::write_assembly().

locked_logger BASIS_EXTERN& real_program_wide_logger (  ) 

allows the underlying logging facility to be accessed.

Definition at line 37 of file program_wide_logger.cpp.

References SAFE_STATIC_IMPLEMENTATION.

Referenced by program_wide_logger(), retask_program_wide_logger(), and program_wide_cleanup::~program_wide_cleanup().

log_base BASIS_EXTERN* retask_program_wide_logger ( log_base new_logger  ) 

Changes the log_base object used for this program's logging.

The previous log_base is returned; it should be deleted if it was dynamically allocated. if the "new_logger" should not be deleted on program exit, then it should be retasked with NIL or with a disposable logger.

Definition at line 55 of file program_wide_logger.cpp.

References real_program_wide_logger(), and locked_object< contents >::swap().

Referenced by EVT_COMMAND(), tiny_shell::OnClose(), tiny_shell::OnCreate(), set_PW_logger_for_combo(), set_PW_logger_for_console(), set_PW_logger_for_file(), set_PW_logger_for_null(), and application_shell::swap_logger().


Generated on Fri Nov 21 04:31:12 2008 for HOOPLE Libraries by  doxygen 1.5.1