C++ Server-Side SDK
LaunchDarkly SDK
Public Attributes | List of all members
LDLogBackend Struct Reference

#include <logging_builder.h>

Public Attributes

EnabledFn Enabled
 
WriteFn Write
 
void * UserData
 

Detailed Description

Defines a logging interface suitable for use with SDK configuration.

Member Data Documentation

◆ Enabled

EnabledFn LDLogBackend::Enabled

Check if the specified log level is enabled. Must be thread safe.

Parameters
levelThe log level to check.
Returns
Returns true if the level is enabled.

◆ UserData

void* LDLogBackend::UserData

UserData is forwarded into both Enabled and Write.

◆ Write

WriteFn LDLogBackend::Write

Write a message to the specified level. The message pointer is valid only for the duration of this function call. Must be thread safe.

Parameters
levelThe level to write the message to.
messageThe message to write.

The documentation for this struct was generated from the following file: