C++ Client-Side SDK
LaunchDarkly SDK
log_level.h
Go to the documentation of this file.
1 
2 // NOLINTBEGIN modernize-use-using
3 
4 #pragma once
5 
8 
9 #include <stdbool.h>
10 #include <stddef.h>
11 #include <stdint.h>
12 
13 #ifdef __cplusplus
14 extern "C" { // only need to export C interface if
15 // used by C++ source code
16 #endif
17 
22 enum LDLogLevel {
23  LD_LOG_DEBUG = 0,
24  LD_LOG_INFO = 1,
25  LD_LOG_WARN = 2,
26  LD_LOG_ERROR = 3,
27  LD_UNUSED_MAXVALUE = INT32_MAX /* Used to ensure the underlying type is
28  * at least 32 bits. */
29 };
30 
38 LD_EXPORT(char const*)
39 LDLogLevel_Name(enum LDLogLevel level, char const* level_if_unknown);
40 
49 LD_EXPORT(enum LDLogLevel)
50 LDLogLevel_Enum(char const* level, enum LDLogLevel level_if_unknown);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
56 // NOLINTEND modernize-use-using
Export macros for C bindings.
LDLogLevel
Definition: log_level.h:22
LDLogLevel_Enum(char const *level, enum LDLogLevel level_if_unknown)
Definition: log_level.cpp:14
LDLogLevel_Name(enum LDLogLevel level, char const *level_if_unknown)
Definition: log_level.cpp:8