Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Log_Priority.h File Reference

#include "ace/pre.h"
#include "ace/post.h"

Include dependency graph for Log_Priority.h:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Enumerations

enum  ACE_Log_Priority {
  LM_SHUTDOWN = 01, LM_TRACE = 02, LM_DEBUG = 04, LM_INFO = 010,
  LM_NOTICE = 020, LM_WARNING = 040, LM_STARTUP = 0100, LM_ERROR = 0200,
  LM_CRITICAL = 0400, LM_ALERT = 01000, LM_EMERGENCY = 02000, LM_MAX = LM_EMERGENCY,
  LM_ENSURE_32_BITS = 0x7FFFFFFF
}
 This data type indicates the relative priorities of the logging messages, from lowest to highest priority. More...


Detailed Description

Id:
Log_Priority.h,v 1.1.1.3 2001/12/04 14:33:02 chad Exp

Author:
Douglas C. Schmidt <schmidt@cs.wustl.edu>

Definition in file Log_Priority.h.


Enumeration Type Documentation

enum ACE_Log_Priority
 

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.

Enumeration values:
LM_SHUTDOWN  Shutdown the logger (decimal 1).
LM_TRACE  Messages indicating function-calling sequence (decimal 2).
LM_DEBUG  Messages that contain information normally of use only when debugging a program (decimal 4).
LM_INFO  Informational messages (decimal 8).
LM_NOTICE  Conditions that are not error conditions, but that may require special handling (decimal 16).
LM_WARNING  Warning messages (decimal 32).
LM_STARTUP  Initialize the logger (decimal 64).
LM_ERROR  Error messages (decimal 128).
LM_CRITICAL  Critical conditions, such as hard device errors (decimal 256).
LM_ALERT  A condition that should be corrected immediately, such as a corrupted system database (decimal 512).
LM_EMERGENCY  A panic condition. This is normally broadcast to all users (decimal 1024).
LM_MAX  The maximum logging priority.
LM_ENSURE_32_BITS  Do not use!! This enum value ensures that the underlying integral type for this enum is at least 32 bits.

Definition at line 26 of file Log_Priority.h.

Referenced by ACE_Log_Record::ACE_Log_Record, ACE_Log_Msg::disable_debug_messages, ACE_Log_Msg::enable_debug_messages, ACE_Log_Record::format_msg, ACE_Log_Msg::log, ACE_Log_Msg::log_hexdump, ACE_Log_Msg::log_priority_enabled, and ACE_Log_Record::priority_name.

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 };


Generated on Mon Jun 16 11:44:28 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002