rename atomic level type name

This commit is contained in:
gabime 2016-04-10 01:43:52 +03:00
parent 974379c9be
commit 083d6c0d2f
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -103,7 +103,7 @@ protected:
std::string _name;
std::vector<sink_ptr> _sinks;
formatter_ptr _formatter;
spdlog::atomic_level _level;
spdlog::level_t _level;
};
}