NAME
gcl_level
- Logging level flags.
SYNOPSIS
#include <game-carrier/common.h>
enum gcl_level {
GCL_ERR = 1 << 0,
GCL_WARN = 1 << 1,
GCL_NOTICE = 1 << 2,
GCL_INFO = 1 << 3,
GCL_DEBUG = 1 << 4,
GCL_USER = 1 << 10,
GCL_NORMAL = GCL_ERR | GCL_WARN | GCL_NOTICE | GCL_USER,
GCL_VERBOSE = GCL_NORMAL | GCL_INFO | GCL_DEBUG,
GCL_LEVEL_COUNT = 12
};
DESCRIPTION
The gcl_level
enum is used to configure logging level flags.
These flags are utilized in the gc_log_setopt
API function to specify which messages should be ignored.
Additionally, they are employed as simple values in the logMessage
and gc_log_message
API functions to indicate the logging level for a given message.
Name | Value | Description |
---|---|---|
GCL_ERR |
0x0001 |
Error level. |
GCL_WARN |
0x0002 |
Warning level. |
GCL_NOTICE |
0x0004 |
Notice level. |
GCL_INFO |
0x0008 |
Information level. |
GCL_DEBUG |
0x0010 |
Debug print level. |
GCL_USER |
0x0400 |
User level. |
GCL_NORMAL |
GCL_ERR | GCL_WARN | GCL_NOTICE | GCL_USER |
Mask for normal logging level. |
GCL_VERBOSE |
GCL_NORMAL | GCL_INFO | GCL_DEBUG |
Mask for verbose logging level. |
GCL_LEVEL_COUNT |
12 | For internal usage only. |