mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
SetLevel returns old level
This commit is contained in:
parent
bb2989e1c5
commit
19fcfc7f44
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user