6#include <source_location>
9#include "spdlog/spdlog.h"
52 std::string_view sText,
53 const std::source_location location = std::source_location::current())
const;
65 std::string_view sText,
66 const std::source_location location = std::source_location::current())
const;
78 std::string_view sText,
79 const std::source_location location = std::source_location::current())
const;
static size_t getTotalErrorsProduced()
Definition: Logger.cpp:48
void info(std::string_view sText, const std::source_location location=std::source_location::current()) const
Definition: Logger.cpp:50
static std::string getDateTime()
Definition: Logger.cpp:124
std::filesystem::path sLoggerWorkingDirectory
Definition: Logger.h:123
std::filesystem::path getDirectoryWithLogs() const
Definition: Logger.cpp:90
std::unique_ptr< spdlog::logger > pSpdLogger
Definition: Logger.h:118
static std::atomic< size_t > iTotalErrorsProduced
Definition: Logger.h:129
void error(std::string_view sText, const std::source_location location=std::source_location::current()) const
Definition: Logger.cpp:75
static std::atomic< size_t > iTotalWarningsProduced
Definition: Logger.h:126
static const char * sLogFileExtension
Definition: Logger.h:139
static size_t getTotalWarningsProduced()
Definition: Logger.cpp:46
static Logger & get()
Definition: Logger.cpp:41
static constexpr size_t iMaxLogFiles
Definition: Logger.h:136
static void removeOldestLogFiles(const std::filesystem::path &sLogDirectory)
Definition: Logger.cpp:142
void flushToDisk()
Definition: Logger.cpp:88
void warn(std::string_view sText, const std::source_location location=std::source_location::current()) const
Definition: Logger.cpp:62