4#include "./log_stream.h"
14 std::string mContextId;
15 std::string mContextDescription;
18 std::string ctxDescription,
77 std::string ctxDescription,
A stream pipeline to combine log entities.
Definition: log_stream.h:17
Logger of a specific context.
Definition: logger.h:12
LogStream LogWarn() const
Create a stream for warning logs.
Definition: logger.cpp:33
LogStream LogDebug() const
Create a stream for debug logs.
Definition: logger.cpp:45
bool IsEnabled(LogLevel logLevel) const noexcept
Determine whether a certian log level is enabled in the current context or not.
Definition: logger.cpp:57
LogStream LogError() const
Create a stream for error logs.
Definition: logger.cpp:27
LogStream WithLevel(LogLevel logLevel) const
Create a stream for certian level logs.
Definition: logger.cpp:64
LogStream LogFatal() const
Create a stream for fatal logs.
Definition: logger.cpp:21
ClientState RemoteClientState() const noexcept
Remote logging client connection state.
Definition: logger.cpp:15
static Logger CreateLogger(std::string ctxId, std::string ctxDescription, LogLevel ctxDefLogLevel)
Logger factory.
Definition: logger.cpp:79
LogStream LogVerbose() const
Create a stream for verbose logs.
Definition: logger.cpp:51
LogStream LogInfo() const
Create a stream for information logs.
Definition: logger.cpp:39
LogLevel
Log severity level.
Definition: common.h:13
ClientState
Logging client connection state.
Definition: common.h:33