Class log_interface¶
Defined in File logger.hpp
Inheritance Relationships¶
Derived Type¶
public stream_client::base_logger(Class base_logger)
Class Documentation¶
-
class
stream_client::log_interface¶ Logger interface used by the library.
Subclassed by stream_client::base_logger
Public Functions
-
virtual
~log_interface() = default¶ Destructor.
-
virtual void
set_level(log_level level) noexcept = 0¶ Set logger level.
- Parameters
[in] level – Level to setup.
-
virtual void
message(log_level level, const std::string &location, const std::string &message) const = 0¶ Log
messageproduced fromlocationwithlevel.Note
Thread-safe.
- Parameters
[in] level – Level of the message.
[in] location – Location of the message. Used to filter messages from different parts of the library.
[in] message – The body of the message.
-
virtual