C Server-Side SDK
LaunchDarkly SDK
|
|
Go to the documentation of this file.
64 void (*logger)(
const LDLogLevel level,
const char *
const text));
67 #define LD_LOG(level, text) \
68 LDi_log(level, "[%s, %d] %s", __FILE__, __LINE__, text)
void LDBasicLogger(const LDLogLevel level, const char *const text)
A provided logger that can be used as a convenient default.
void LDBasicLoggerThreadSafe(const LDLogLevel level, const char *const text)
A provided logger that can be used as a convenient default. Must call LDBasicLoggerTSInitialize befor...
#define LD_EXPORT(x)
Used to ensure only intended symbols are exported in the binaries.
Definition: export.h:10
LDLogLevel
The log levels compatible with the logging interface.
Definition: logging.h:11
void LDBasicLoggerThreadSafeShutdown(void)
Shutdown routine for LDBasicLoggerThreadSafe Call this when LDBasicLoggerThreadSafe is no longer used...
void LDBasicLoggerThreadSafeInitialize(void)
Setup routine for LDBasicLoggerThreadSafe. Call this before LDBasicLoggerThreadSafe is used.
const char * LDLogLevelToString(const LDLogLevel level)
Convert a verbosity level Enum value to an equivalent static string. This is intended as a convenienc...
void LDConfigureGlobalLogger(const LDLogLevel level, void(*logger)(const LDLogLevel level, const char *const text))
Set the logger, and the log level to use. This routine should only be used before any other LD routin...
void LDi_log(const LDLogLevel level, const char *const format,...)
Internal: Used for the non macro portion.
Public. Configuration of exported symbols.