CPP-TOOLBOX
Loading...
Searching...
No Matches
logger.hpp File Reference
#include <fmt/core.h>
#include <spdlog/spdlog.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/sinks/stdout_sinks.h>
#include <spdlog/sinks/basic_file_sink.h>
#include <spdlog/sinks/rotating_file_sink.h>
#include <map>
#include <string_view>
#include <sstream>

Go to the source code of this file.

Classes

class  Logger
 
class  LogSection
 

Variables

const std::map< spdlog::level::level_enum, std::string > level_to_string
 
Logger global_logger
 

Variable Documentation

◆ global_logger

Logger global_logger
extern

◆ level_to_string

const std::map<spdlog::level::level_enum, std::string> level_to_string
Initial value:
= {
{spdlog::level::trace, "trace"}, {spdlog::level::debug, "debug"}, {spdlog::level::info, "info"},
{spdlog::level::warn, "warn"}, {spdlog::level::err, "err"}, {spdlog::level::critical, "critical"},
{spdlog::level::off, "off"}}