Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Log_Priority.h
blobe077d23031827cab93afd2bcddea44ca000ddea9
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Log_Priority.h
7 * @author Douglas C. Schmidt <d.schmidt@vanderbilt.edu>
8 */
9 //=============================================================================
11 #ifndef ACE_LOG_PRIORITY_H
12 #define ACE_LOG_PRIORITY_H
14 #include /**/ "ace/pre.h"
16 #include /**/ "ace/config-lite.h"
18 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
20 /**
21 * @enum ACE_Log_Priority
23 * @brief This data type indicates the relative priorities of the
24 * logging messages, from lowest to highest priority.
26 * These values are defined using powers of two so that it's
27 * possible to form a mask to turn them on or off dynamically.
28 * We only use 12 bits, however, so users are free to use the
29 * remaining 19 bits to define their own priority masks.
31 enum ACE_Log_Priority
33 // = Note, this first argument *must* start at 1!
35 /// Shutdown the logger (decimal 1).
36 LM_SHUTDOWN = 01,
38 /// Messages indicating function-calling sequence (decimal 2).
39 LM_TRACE = 02,
41 /// Messages that contain information normally of use only when
42 /// debugging a program (decimal 4).
43 LM_DEBUG = 04,
45 /// Informational messages (decimal 8).
46 LM_INFO = 010,
48 /// Conditions that are not error conditions, but that may require
49 /// special handling (decimal 16).
50 LM_NOTICE = 020,
52 /// Warning messages (decimal 32).
53 LM_WARNING = 040,
55 /// Initialize the logger (decimal 64).
56 LM_STARTUP = 0100,
58 /// Error messages (decimal 128).
59 LM_ERROR = 0200,
61 /// Critical conditions, such as hard device errors (decimal 256).
62 LM_CRITICAL = 0400,
64 /// A condition that should be corrected immediately, such as a
65 /// corrupted system database (decimal 512).
66 LM_ALERT = 01000,
68 /// A panic condition. This is normally broadcast to all users
69 /// (decimal 1024).
70 LM_EMERGENCY = 02000,
72 /// The maximum logging priority.
73 LM_MAX = LM_EMERGENCY,
75 /// Do not use!! This enum value ensures that the underlying
76 /// integral type for this enum is at least 32 bits.
77 LM_ENSURE_32_BITS = 0x7FFFFFFF
80 ACE_END_VERSIONED_NAMESPACE_DECL
82 #include /**/ "ace/post.h"
83 #endif /* ACE_LOG_PRIORITY_H */