9#define LOGGER WMVLog::Logger::instance()
10#define LOG_INFO LOGGER(WMVLog::Logger::INFO_LOG)
11#define LOG_ERROR LOGGER(WMVLog::Logger::ERROR_LOG)
12#define LOG_WARNING LOGGER(WMVLog::Logger::WARNING_LOG)
13#define LOG_FATAL LOGGER(WMVLog::Logger::FATAL_LOG)
83 static std::string
formatLog(
int type,
const std::string& msg);
Generic typed container that manages a set of child Component pointers.
RAII stream object that collects log output and dispatches it on destruction.
LogStream & operator<<(const T &value)
std::ostringstream m_stream
LogStream(const LogStream &)=delete
LogStream & operator=(const LogStream &)=delete
Singleton logging facility that dispatches formatted messages to LogOutput sinks.
static Logger * m_instance
Logger(const Logger &)=delete
LogStream operator()(Logger::LogType type)
Create a LogStream for the given severity level.
void dispatchLog(int type, const std::string &msg)
Send a pre-formatted message to all registered outputs.
static std::string formatLog(int type, const std::string &msg)
Format a log message with a severity prefix and timestamp.
static Logger & instance()
static void init()
Initialise the logging subsystem (creates console and file outputs).
Logger & operator=(const Logger &)=delete