Adjustments for runner process logging (#8112)

This commit is contained in:
Mykhailo Pylyp
2020-11-18 20:25:20 +02:00
committed by GitHub
parent e2473b70ca
commit 53bbd08fd3
5 changed files with 17 additions and 7 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include <spdlog/spdlog.h>
#include "logger_settings.h"
class Logger
{
@@ -10,36 +11,42 @@ public:
Logger();
Logger(std::string loggerName, std::wstring logFilePath, std::wstring_view logSettingsPath);
// log message should not be localized
template<typename FormatString, typename... Args>
void trace(const FormatString& fmt, const Args&... args)
{
this->logger->trace(fmt, args...);
}
// log message should not be localized
template<typename FormatString, typename... Args>
void debug(const FormatString& fmt, const Args&... args)
{
this->logger->debug(fmt, args...);
}
// log message should not be localized
template<typename FormatString, typename... Args>
void info(const FormatString& fmt, const Args&... args)
{
this->logger->info(fmt, args...);
}
// log message should not be localized
template<typename FormatString, typename... Args>
void warn(const FormatString& fmt, const Args&... args)
{
this->logger->warn(fmt, args...);
}
// log message should not be localized
template<typename FormatString, typename... Args>
void error(const FormatString& fmt, const Args&... args)
{
this->logger->error(fmt, args...);
}
// log message should not be localized
template<typename FormatString, typename... Args>
void critical(const FormatString& fmt, const Args&... args)
{