Commit 01eb59ca authored by gabime's avatar gabime

Removed spdlog::default_level and its usage in registry

parent a8b5e3da
......@@ -32,7 +32,7 @@ namespace details {
SPDLOG_INLINE registry::registry()
: formatter_(new pattern_formatter())
, level_(spdlog::logger::default_level())
, level_(spdlog::level::info)
{
#ifndef SPDLOG_DISABLE_DEFAULT_LOGGER
......
......@@ -86,11 +86,6 @@ SPDLOG_INLINE void logger::set_level(level::level_enum log_level)
level_.store(log_level);
}
SPDLOG_INLINE level::level_enum logger::default_level()
{
return static_cast<level::level_enum>(SPDLOG_ACTIVE_LEVEL);
}
SPDLOG_INLINE level::level_enum logger::level() const
{
return static_cast<level::level_enum>(level_.load(std::memory_order_relaxed));
......
......@@ -308,8 +308,6 @@ public:
void set_level(level::level_enum log_level);
static level::level_enum default_level();
level::level_enum level() const;
const std::string &name() const;
......@@ -339,7 +337,7 @@ public:
protected:
std::string name_;
std::vector<sink_ptr> sinks_;
spdlog::level_t level_{spdlog::logger::default_level()};
spdlog::level_t level_{level::info};
spdlog::level_t flush_level_{level::off};
err_handler custom_err_handler_{nullptr};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment