Logging framework which links loggers to a log sink. More...
#include <logging_framework.h>
Public Member Functions | |
| const Logger & | CreateLogger (std::string ctxId, std::string ctxDescription) |
| Create a logger. More... | |
| const Logger & | CreateLogger (std::string ctxId, std::string ctxDescription, LogLevel ctxDefLogLevel) |
| Create a logger. More... | |
| void | Log (const Logger &logger, LogLevel logLevel, const LogStream &logStream) |
| Log a stream to the determined sink. More... | |
Static Public Member Functions | |
| static LoggingFramework * | Create (std::string appId, LogMode logMode, LogLevel logLevel=LogLevel::kWarn, std::string appDescription="") |
| Logging framework factory. More... | |
| static LoggingFramework * | Create (std::string appId, std::string filePath, LogLevel logLevel=LogLevel::kWarn, std::string appDescription="") |
| Logging framework factory only for file sinks. More... | |
Logging framework which links loggers to a log sink.
|
static |
Logging framework factory.
| appId | Application ID |
| logMode | Log sink mode |
| logLevel | Log severity level |
| appDescription | Application description |
| std::invalid_argument | Throws when file log mode is chosen |
|
static |
Logging framework factory only for file sinks.
| appId | Application ID |
| filePath | Log file path |
| logLevel | Log severity level |
| appDescription | Application description |
| const Logger & ara::log::LoggingFramework::CreateLogger | ( | std::string | ctxId, |
| std::string | ctxDescription | ||
| ) |
Create a logger.
| ctxId | Log context ID |
| ctxDescription | Log context description |
| const Logger & ara::log::LoggingFramework::CreateLogger | ( | std::string | ctxId, |
| std::string | ctxDescription, | ||
| LogLevel | ctxDefLogLevel | ||
| ) |
Create a logger.
| ctxId | Log context ID |
| ctxDescription | Log context description |
| ctxDefLogLevel | Log context default log level |