Skip to content

make log() thread-safe by dropping the log level map

Maxim Onciul requested to merge thread_safe_log_config into master

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.

Merge request reports

Loading