From ca5db71e8215a6c5660fe03088a6d7349f55f817 Mon Sep 17 00:00:00 2001 From: BobTheBob <32057864+BobTheBob9@users.noreply.github.com> Date: Sat, 17 Jul 2021 22:33:00 +0100 Subject: add support for custom convars and concommands --- .../include/spdlog/cfg/helpers.h | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 NorthstarDedicatedTest/include/spdlog/cfg/helpers.h (limited to 'NorthstarDedicatedTest/include/spdlog/cfg/helpers.h') diff --git a/NorthstarDedicatedTest/include/spdlog/cfg/helpers.h b/NorthstarDedicatedTest/include/spdlog/cfg/helpers.h new file mode 100644 index 00000000..a795f39a --- /dev/null +++ b/NorthstarDedicatedTest/include/spdlog/cfg/helpers.h @@ -0,0 +1,29 @@ +// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. +// Distributed under the MIT License (http://opensource.org/licenses/MIT) + +#pragma once + +#include +#include + +namespace spdlog { +namespace cfg { +namespace helpers { +// +// Init levels from given string +// +// Examples: +// +// set global level to debug: "debug" +// turn off all logging except for logger1: "off,logger1=debug" +// turn off all logging except for logger1 and logger2: "off,logger1=debug,logger2=info" +// +SPDLOG_API void load_levels(const std::string &txt); +} // namespace helpers + +} // namespace cfg +} // namespace spdlog + +#ifdef SPDLOG_HEADER_ONLY +#include "helpers-inl.h" +#endif // SPDLOG_HEADER_ONLY -- cgit v1.2.3