critical_events Class Reference

Provides a means of writing events to a log of runtime problems. More...

#include <critical_events.h>

List of all members.

Static Public Member Functions

static void write_to_critical_events (const char *message)
 sends the "message" to the critical events log file.
static void set_critical_events_directory (const istring &directory)
 sets the internal location where the critical events will be logged.
static istring critical_events_directory ()
 returns the current location where critical events are written.


Detailed Description

Provides a means of writing events to a log of runtime problems.

Definition at line 22 of file critical_events.h.


Member Function Documentation

void critical_events::write_to_critical_events ( const char *  message  )  [static]

sends the "message" to the critical events log file.

Prints out a message to the specially named file that captures all serious events written to error logging functions. If you use the functions in this file, you are likely already writing to this log.

Definition at line 57 of file critical_events.cpp.

References portable::application_name(), critical_events_directory(), istring::end(), istring::find(), non_negative(), log_base::platform_ending(), istring::s(), utility::timestamp(), and istring::zap().

Referenced by program_wide_logger(), and file_logger::truncate().

void critical_events::set_critical_events_directory ( const istring directory  )  [static]

sets the internal location where the critical events will be logged.

this is postponed to a higher level, although the default will work too.

Definition at line 54 of file critical_events.cpp.

istring critical_events::critical_events_directory (  )  [static]

returns the current location where critical events are written.

Definition at line 41 of file critical_events.cpp.

References default_critical_location().

Referenced by write_to_critical_events().


The documentation for this class was generated from the following files:
Generated on Fri Oct 10 04:30:06 2008 for HOOPLE Libraries by  doxygen 1.5.1