mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 17:41:34 +08:00
rename atomic level type name
This commit is contained in:
parent
974379c9be
commit
083d6c0d2f
@ -42,9 +42,9 @@ using sink_ptr = std::shared_ptr < sinks::sink >;
|
||||
using sinks_init_list = std::initializer_list < sink_ptr >;
|
||||
using formatter_ptr = std::shared_ptr<spdlog::formatter>;
|
||||
#if defined(SPDLOG_NO_ATOMIC_LEVELS)
|
||||
using atomic_level = details::null_atomic_int;
|
||||
using level_t = details::null_atomic_int;
|
||||
#else
|
||||
using atomic_level = std::atomic_int;
|
||||
using level_t = std::atomic_int;
|
||||
#endif
|
||||
|
||||
//Log level enum
|
||||
|
@ -103,7 +103,7 @@ protected:
|
||||
std::string _name;
|
||||
std::vector<sink_ptr> _sinks;
|
||||
formatter_ptr _formatter;
|
||||
spdlog::atomic_level _level;
|
||||
spdlog::level_t _level;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user