diff --git a/include/firestarter/Logging/Log.hpp b/include/firestarter/Logging/Log.hpp index a2874ebb..d5fc9d5e 100644 --- a/include/firestarter/Logging/Log.hpp +++ b/include/firestarter/Logging/Log.hpp @@ -54,10 +54,20 @@ class StdOut { } }; -using Record = nitro::log::record; +// NOLINTEND(readability-identifier-naming) -template class Formater { +template +// NOLINTBEGIN(readability-identifier-naming) +// The class may not be named Formater since this is used as a template argument name in nitro which will cause errors +// when compiling with MSC. We will also write it with lower case and the correct spelling in case it gets renamed +// correctly there. +class formatter { + // NOLINTEND(readability-identifier-naming) public: auto format(Record& R) -> std::string { std::stringstream S; @@ -92,9 +102,9 @@ using WorkerFilter = nitro::log::filter::and_filter, FirstWorkerT } // namespace logging -using log = nitro::log::logger; +using log = nitro::log::logger; using workerLog = - nitro::log::logger; + nitro::log::logger; } // namespace firestarter diff --git a/src/firestarter/Main.cpp b/src/firestarter/Main.cpp index ce16bcd9..04b17a28 100644 --- a/src/firestarter/Main.cpp +++ b/src/firestarter/Main.cpp @@ -270,13 +270,13 @@ Config::Config(int Argc, const char** Argv) { auto Options = Parser.parse(Argc, Argv); if (static_cast(Options.count("quiet"))) { - firestarter::logging::Filter::set_severity(nitro::log::severity_level::warn); + firestarter::logging::Filter::set_severity(nitro::log::severity_level::warn); } else if (static_cast(Options.count("report"))) { - firestarter::logging::Filter::set_severity(nitro::log::severity_level::debug); + firestarter::logging::Filter::set_severity(nitro::log::severity_level::debug); } else if (static_cast(Options.count("debug"))) { - firestarter::logging::Filter::set_severity(nitro::log::severity_level::trace); + firestarter::logging::Filter::set_severity(nitro::log::severity_level::trace); } else { - firestarter::logging::Filter::set_severity(nitro::log::severity_level::info); + firestarter::logging::Filter::set_severity(nitro::log::severity_level::info); } if (static_cast(Options.count("version"))) {