Log_Priority.h

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

Generated on Thu Nov 9 09:41:53 2006 for ACE by doxygen 1.3.6