C++ Server-Side SDK
LaunchDarkly SDK
Public Member Functions | List of all members
LogBackendWrapper Class Reference

#include <log_backend_wrapper.hpp>

Inheritance diagram for LogBackendWrapper:
Inheritance graph
[legend]
Collaboration diagram for LogBackendWrapper:
Collaboration graph
[legend]

Public Member Functions

 LogBackendWrapper (LDLogBackend backend)
 
bool Enabled (launchdarkly::LogLevel level) noexcept override
 
void Write (launchdarkly::LogLevel level, std::string message) noexcept override
 
- Public Member Functions inherited from launchdarkly::ILogBackend
 ILogBackend (ILogBackend const &item)=delete
 
 ILogBackend (ILogBackend &&item)=delete
 
ILogBackendoperator= (ILogBackend const &)=delete
 
ILogBackendoperator= (ILogBackend &&)=delete
 

Detailed Description

Utility class to allow user-provided backends to satisfy the ILogBackend interface.

Member Function Documentation

◆ Enabled()

bool LogBackendWrapper::Enabled ( launchdarkly::LogLevel  level)
inlineoverridevirtualnoexcept

Check if the specified log level is enabled.

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

Implements launchdarkly::ILogBackend.

◆ Write()

void LogBackendWrapper::Write ( launchdarkly::LogLevel  level,
std::string  message 
)
inlineoverridevirtualnoexcept

Write a message to the specified level. This method must be thread safe.

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

Implements launchdarkly::ILogBackend.


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