diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/Log_Priority.h | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/ace/Log_Priority.h')
-rw-r--r-- | ACE/ace/Log_Priority.h | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/ACE/ace/Log_Priority.h b/ACE/ace/Log_Priority.h new file mode 100644 index 00000000000..c1084bbeee5 --- /dev/null +++ b/ACE/ace/Log_Priority.h @@ -0,0 +1,85 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Log_Priority.h + * + * $Id$ + * + * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> + */ +//============================================================================= + +#ifndef ACE_LOG_PRIORITY_H +#define ACE_LOG_PRIORITY_H + +#include /**/ "ace/pre.h" + +#include "ace/config-lite.h" + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +/** + * @enum ACE_Log_Priority + * + * @brief This data type indicates the relative priorities of the + * logging messages, from lowest to highest priority. + * + * These values are defined using powers of two so that it's + * possible to form a mask to turn them on or off dynamically. + * We only use 12 bits, however, so users are free to use the + * remaining 19 bits to define their own priority masks. + */ +enum ACE_Log_Priority +{ + // = Note, this first argument *must* start at 1! + + /// Shutdown the logger (decimal 1). + LM_SHUTDOWN = 01, + + /// Messages indicating function-calling sequence (decimal 2). + LM_TRACE = 02, + + /// Messages that contain information normally of use only when + /// debugging a program (decimal 4). + LM_DEBUG = 04, + + /// Informational messages (decimal 8). + LM_INFO = 010, + + /// Conditions that are not error conditions, but that may require + /// special handling (decimal 16). + LM_NOTICE = 020, + + /// Warning messages (decimal 32). + LM_WARNING = 040, + + /// Initialize the logger (decimal 64). + LM_STARTUP = 0100, + + /// Error messages (decimal 128). + LM_ERROR = 0200, + + /// Critical conditions, such as hard device errors (decimal 256). + LM_CRITICAL = 0400, + + /// A condition that should be corrected immediately, such as a + /// corrupted system database (decimal 512). + LM_ALERT = 01000, + + /// A panic condition. This is normally broadcast to all users + /// (decimal 1024). + LM_EMERGENCY = 02000, + + /// The maximum logging priority. + LM_MAX = LM_EMERGENCY, + + /// Do not use!! This enum value ensures that the underlying + /// integral type for this enum is at least 32 bits. + LM_ENSURE_32_BITS = 0x7FFFFFFF +}; + +ACE_END_VERSIONED_NAMESPACE_DECL + +#include /**/ "ace/post.h" +#endif /* ACE_LOG_PRIORITY_H */ |