C++ Server-Side SDK
LaunchDarkly SDK
Enumerations | Functions
log_level.h File Reference
#include <launchdarkly/bindings/c/export.h>
#include <launchdarkly/bindings/c/status.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for log_level.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  LDLogLevel {
  LD_LOG_DEBUG = 0 , LD_LOG_INFO = 1 , LD_LOG_WARN = 2 , LD_LOG_ERROR = 3 ,
  LD_UNUSED_MAXVALUE = INT32_MAX
}
 

Functions

 LDLogLevel_Name (enum LDLogLevel level, char const *level_if_unknown)
 
 LDLogLevel_Enum (char const *level, enum LDLogLevel level_if_unknown)
 

Enumeration Type Documentation

◆ LDLogLevel

enum LDLogLevel

Defines the log levels used with the SDK's default logger, or a user-provided custom logger.

Function Documentation

◆ LDLogLevel_Enum()

LDLogLevel_Enum ( char const *  level,
enum LDLogLevel  level_if_unknown 
)

Lookup a LDLogLevel by name.

Parameters
levelName of level.
level_if_unknownDefault level to return if the level wasn't recognized.
Returns
LDLogLevel matching the name, or level_if_unknown if not recognized.

◆ LDLogLevel_Name()

LDLogLevel_Name ( enum LDLogLevel  level,
char const *  level_if_unknown 
)

Lookup the name of a LDLogLevel.

Parameters
levelTarget level.
level_if_unknownDefault name to return if the level wasn't recognized.
Returns
Name of the level as a string, or level_if_unknown if not recognized.