00001 /* -*- C++ -*- */ 00002 00003 //============================================================================= 00004 /** 00005 * @file Log_Priority.h 00006 * 00007 * $Id: Log_Priority.h,v 1.1.1.3 2001/12/04 14:33:02 chad Exp $ 00008 * 00009 * @author Douglas C. Schmidt <schmidt@cs.wustl.edu> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef ACE_LOG_PRIORITY_H 00014 #define ACE_LOG_PRIORITY_H 00015 #include "ace/pre.h" 00016 00017 /** 00018 * @brief This data type indicates the relative priorities of the 00019 * logging messages, from lowest to highest priority. 00020 * 00021 * These values are defined using powers of two so that it's 00022 * possible to form a mask to turn them on or off dynamically. 00023 * We only use 12 bits, however, so users are free to use the 00024 * remaining 19 bits to define their own priority masks. 00025 */ 00026 enum ACE_Log_Priority 00027 { 00028 // = Note, this first argument *must* start at 1! 00029 00030 /// Shutdown the logger (decimal 1). 00031 LM_SHUTDOWN = 01, 00032 00033 /// Messages indicating function-calling sequence (decimal 2). 00034 LM_TRACE = 02, 00035 00036 /// Messages that contain information normally of use only when 00037 /// debugging a program (decimal 4). 00038 LM_DEBUG = 04, 00039 00040 /// Informational messages (decimal 8). 00041 LM_INFO = 010, 00042 00043 /// Conditions that are not error conditions, but that may require 00044 /// special handling (decimal 16). 00045 LM_NOTICE = 020, 00046 00047 /// Warning messages (decimal 32). 00048 LM_WARNING = 040, 00049 00050 /// Initialize the logger (decimal 64). 00051 LM_STARTUP = 0100, 00052 00053 /// Error messages (decimal 128). 00054 LM_ERROR = 0200, 00055 00056 /// Critical conditions, such as hard device errors (decimal 256). 00057 LM_CRITICAL = 0400, 00058 00059 /// A condition that should be corrected immediately, such as a 00060 /// corrupted system database (decimal 512). 00061 LM_ALERT = 01000, 00062 00063 /// A panic condition. This is normally broadcast to all users 00064 /// (decimal 1024). 00065 LM_EMERGENCY = 02000, 00066 00067 /// The maximum logging priority. 00068 LM_MAX = LM_EMERGENCY, 00069 00070 /// Do not use!! This enum value ensures that the underlying 00071 /// integral type for this enum is at least 32 bits. 00072 LM_ENSURE_32_BITS = 0x7FFFFFFF 00073 }; 00074 00075 #include "ace/post.h" 00076 #endif /* ACE_LOG_PRIORITY_H */
1.2.14 written by Dimitri van Heesch,
© 1997-2002