29 void LogInfo(
const std::string&)
46 return std::make_unique<NullLoggerImpl>();
static std::unique_ptr< ILogger > CreateLogger()
Create an instance of a null logger, a logger that doesn't do anything.
Declaration of the NullLogger class used in the Bridge Pattern.
The namespace containing all Design Pattern Examples implemented in C++.
Represents an implementation of a logger object as call from the Logger class.
virtual void LogInfo(const std::string &msg)=0
Log informational messages to the configured output.
virtual void LogTrace(const std::string &msg)=0
Log trace messages to the configured output.
virtual void LogError(const std::string &msg)=0
Log error messages to the configured output.