make log() thread-safe by dropping the log level map
Compare changes
+ 24
− 12
@@ -60,21 +60,33 @@ enum LogLevel {
@@ -60,21 +60,33 @@ enum LogLevel {
@@ -115,7 +127,7 @@ protected:
@@ -115,7 +127,7 @@ protected:
Concurrently using the std::map LOG_CONFIG
can result in a segmentation fault.
To prevent concurrent access to LOG_CONFIG a new constexpr getLevelFor is introduces analogue to getTagFor.