C++ Client-Side SDK
LaunchDarkly SDK
log_backend.hpp
1 #pragma once
2 
3 #include <memory>
4 #include <optional>
5 #include <string>
6 
7 #include "log_level.hpp"
8 
9 namespace launchdarkly {
15 class ILogBackend {
16  public:
22  virtual bool Enabled(LogLevel level) noexcept = 0;
23 
29  virtual void Write(LogLevel level, std::string message) noexcept = 0;
30 
31  virtual ~ILogBackend() = default;
32  ILogBackend(ILogBackend const& item) = delete;
33  ILogBackend(ILogBackend&& item) = delete;
34  ILogBackend& operator=(ILogBackend const&) = delete;
35  ILogBackend& operator=(ILogBackend&&) = delete;
36 
37  protected:
38  ILogBackend() = default;
39 };
40 } // namespace launchdarkly
Definition: log_backend.hpp:15
virtual bool Enabled(LogLevel level) noexcept=0
virtual void Write(LogLevel level, std::string message) noexcept=0