diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1996-10-21 21:41:34 +0000 |
commit | a5fdebc5f6375078ec1763850a4ca23ec7fe6458 (patch) | |
tree | bcf0a25c3d45a209a6e3ac37b233a4812f29c732 /ace/Log_Priority.h | |
download | ATCD-a5fdebc5f6375078ec1763850a4ca23ec7fe6458.tar.gz |
Initial revision
Diffstat (limited to 'ace/Log_Priority.h')
-rw-r--r-- | ace/Log_Priority.h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/ace/Log_Priority.h b/ace/Log_Priority.h new file mode 100644 index 00000000000..26b2a5f64d6 --- /dev/null +++ b/ace/Log_Priority.h @@ -0,0 +1,73 @@ +/* -*- C++ -*- */ +// $Id$ + + +// ============================================================================ +// +// = LIBRARY +// ace +// +// = FILENAME +// Log_Priority.h +// +// = AUTHOR +// Doug Schmidt +// +// ============================================================================ + +#if !defined (ACE_LM_PRIORITY_H) +#define ACE_LM_PRIORITY_H + +enum ACE_Log_Priority + // = TITLE + // This data type indicates the relative priorities of the + // logging messages, from lowest to highest priority. + // + // = DESCRIPTION + // These values are defined using powers of two so that it's + // possible to form a mask to turn the on or off dynamically. +{ + // = Note, this first argument *must* start at 1! + + LM_SHUTDOWN = 01, + // Shutdown the logger (decimal 1). + + LM_TRACE = 02, + // Messages indicating function-calling sequence (decimal 2). + + LM_DEBUG = 04, + // Messages that contain information normally of use only when + // debugging a program (decimal 4). + + LM_INFO = 010, + // Informational messages (decimal 8). + + LM_NOTICE = 020, + // Conditions that are not error conditions, but that may require + // special handling (decimal 16). + + LM_WARNING = 040, + // Warning messages (decimal 32). + + LM_STARTUP = 0100, + // Initialize the logger (decimal 64). + + LM_ERROR = 0200, + // Error messages (decimal 128). + + LM_CRITICAL = 0400, + // Critical conditions, such as hard device errors (decimal 256). + + LM_ALERT = 01000, + // A condition that should be corrected immediately, such as a + // corrupted system database (decimal 512). + + LM_EMERGENCY = 02000, + // A panic condition. This is normally broadcast to all users + // (decimal 1024). + + LM_MAX = LM_EMERGENCY + // The maximum logging priority. +}; + +#endif /* ACE_LM_PRIORITY_H */ |