1#ifndef LOGGING_FRAMEWORK_H
2#define LOGGING_FRAMEWORK_H
7#include "./sink/log_sink.h"
8#include "./sink/console_log_sink.h"
9#include "./sink/file_log_sink.h"
21 std::vector<Logger> mLoggers;
35 std::string ctxDescription);
44 std::string ctxDescription,
69 std::string appDescription =
"");
83 std::string appDescription =
"");
A stream pipeline to combine log entities.
Definition: log_stream.h:17
Logger of a specific context.
Definition: logger.h:12
Logging framework which links loggers to a log sink.
Definition: logging_framework.h:17
void Log(const Logger &logger, LogLevel logLevel, const LogStream &logStream)
Log a stream to the determined sink.
Definition: logging_framework.cpp:41
const Logger & CreateLogger(std::string ctxId, std::string ctxDescription)
Create a logger.
Definition: logging_framework.cpp:14
static LoggingFramework * Create(std::string appId, LogMode logMode, LogLevel logLevel=LogLevel::kWarn, std::string appDescription="")
Logging framework factory.
Definition: logging_framework.cpp:56
Application logging sink.
Definition: log_sink.h:15
LogLevel
Log severity level.
Definition: common.h:13
LogMode
Log sink mode.
Definition: common.h:25