C++ Server-Side SDK
LaunchDarkly SDK
|
#include <log_backend.hpp>
Public Member Functions | |
virtual bool | Enabled (LogLevel level) noexcept=0 |
virtual void | Write (LogLevel level, std::string message) noexcept=0 |
ILogBackend (ILogBackend const &item)=delete | |
ILogBackend (ILogBackend &&item)=delete | |
ILogBackend & | operator= (ILogBackend const &)=delete |
ILogBackend & | operator= (ILogBackend &&)=delete |
Interface for logging back-ends.
For a reference implementation refer to console_backend.hpp/cpp.
|
pure virtualnoexcept |
Check if the specified log level is enabled.
level | The log level to check. |
Implemented in LogBackendWrapper.
|
pure virtualnoexcept |
Write a message to the specified level. This method must be thread safe.
level | The level to write the message to. |
message | The message to write. |
Implemented in LogBackendWrapper.