GM6000 Digital Heater Controller Branch: main
SDX-1330
CategoryId.h
Go to the documentation of this file.
1#ifndef Ajax_Logging_CategoryId_h_
2#define Ajax_Logging_CategoryId_h_
3/*-----------------------------------------------------------------------------
4* This file is part of the Colony.Core Project. The Colony.Core Project is an
5* open source project with a BSD type of licensing agreement. See the license
6* agreement (license.txt) in the top/ directory or on the Internet at
7* http://integerfox.com/colony.core/license.txt
8*
9* Copyright (c) 2014-2023 John T. Taylor
10*
11* Redistributions of the source code must retain the above copyright notice.
12*----------------------------------------------------------------------------*/
13/** @file */
14
15
16#include "Cpl/Type/enum.h"
17#include <stdint.h>
18
19
20
21///
22namespace Ajax {
23///
24namespace Logging {
25
26/** This enumeration defines the various logging categories.
27
28 Note: Each symbol must be less than 16 characters
29 123456789 123456
30
31 @param CategoryId Enum
32
33 @param CRITICAL A sub-system/module encountered an unrecoverable error – but the overall System can still provide some level of functionality.
34 @param WARNING A recoverable error and/or an unexpected condition occurred
35 @param EVENT An ‘interesting’ event or action occurred
36 @param ALERT An alert condition or state was encounter (aka a UX Alert)
37 @param INFO Informational. Typically used for detailed troubleshooting and is not recommended to be enabled by default
38 @param METRICS Used to capture metrics to the device’s log file. Expected usage is that the metrics are periodically written the log file.
39 */
40BETTER_ENUM( CategoryId, uint32_t
41 , CRITICAL = 0x0001
42 , WARNING = 0x0002
43 , ALERT = 0x0004
44 , EVENT = 0x0008
45 , INFO = 0x0010
46 , METRICS = 0x0020
47);
48
49
50
51}; // end namespaces
52};
53#endif // end header latch
BETTER_ENUM(AlertMsg, uint16_t, FAILED_SAFE, NO_TEMPERATURE_SENSOR)
This enumeration defines Logging message code for the Alert category.
The 'Ajax' namespace is the root name space all GM6000 application specific source code.