]> git.mxchange.org Git - simgear.git/blob - simgear/debug/debug_types.h
Introduce some more logging classes.
[simgear.git] / simgear / debug / debug_types.h
1 /** \file debug_types.h
2  *  Define the various logging classes and prioritiess
3  */
4
5 /** 
6  * Define the possible classes/categories of logging messages
7  */
8 typedef enum {
9     SG_NONE        = 0x00000000,
10
11     SG_TERRAIN     = 0x00000001,
12     SG_ASTRO       = 0x00000002,
13     SG_FLIGHT      = 0x00000004,
14     SG_INPUT       = 0x00000008,
15     SG_GL          = 0x00000010,
16     SG_VIEW        = 0x00000020,
17     SG_COCKPIT     = 0x00000040,
18     SG_GENERAL     = 0x00000080,
19     SG_MATH        = 0x00000100,
20     SG_EVENT       = 0x00000200,
21     SG_AIRCRAFT    = 0x00000400,
22     SG_AUTOPILOT   = 0x00000800,
23     SG_IO          = 0x00001000,
24     SG_CLIPPER     = 0x00002000,
25     SG_NETWORK     = 0x00004000,
26     SG_ATC         = 0x00008000,
27     SG_NASAL       = 0x00010000,
28     SG_INSTR       = 0x00020000,
29     SG_SYSTEMS     = 0x00040000,
30     SG_AI          = 0x00080000,
31     SG_ENVIRONMENT = 0x00100000,
32     SG_SOUND       = 0x00200000,
33     SG_UNDEFD      = 0x00400000, // For range checkingng
34
35     SG_ALL         = 0xFFFFFFFF
36 } sgDebugClass;
37
38
39 /**
40  * Define the possible logging priorities (and their order).
41  */
42 typedef enum {
43     SG_BULK = 1,       // For frequent messages
44     SG_DEBUG,          // Less frequent debug type messages
45     SG_INFO,           // Informatory messages
46     SG_WARN,           // Possible impending problem
47     SG_ALERT           // Very possible impending problem
48     // SG_EXIT,        // Problem (no core)
49     // SG_ABORT        // Abandon ship (core)
50 } sgDebugPriority;
51