SetLevel returns old level

This commit is contained in:
Joachim Schoeberl 2024-05-05 21:41:05 +02:00
parent bb2989e1c5
commit 19fcfc7f44

View File

@ -42,7 +42,12 @@ namespace ngcore
static NGCORE_API level::level_enum global_level;
public:
static void SetGlobalLoggingLevel( level::level_enum level ) { global_level = level; }
static auto SetGlobalLoggingLevel( level::level_enum level )
{
auto oldval = global_level;
global_level = level;
return oldval;
}
std::shared_ptr<spdlog::logger> logger;