mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Removed spdlog::default_level and its usage in registry
This commit is contained in:
parent
a8b5e3da29
commit
01eb59ca9b
@ -32,7 +32,7 @@ namespace details {
|
|||||||
|
|
||||||
SPDLOG_INLINE registry::registry()
|
SPDLOG_INLINE registry::registry()
|
||||||
: formatter_(new pattern_formatter())
|
: formatter_(new pattern_formatter())
|
||||||
, level_(spdlog::logger::default_level())
|
, level_(spdlog::level::info)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifndef SPDLOG_DISABLE_DEFAULT_LOGGER
|
#ifndef SPDLOG_DISABLE_DEFAULT_LOGGER
|
||||||
|
@ -86,11 +86,6 @@ SPDLOG_INLINE void logger::set_level(level::level_enum log_level)
|
|||||||
level_.store(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
|
SPDLOG_INLINE level::level_enum logger::level() const
|
||||||
{
|
{
|
||||||
return static_cast<level::level_enum>(level_.load(std::memory_order_relaxed));
|
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);
|
void set_level(level::level_enum log_level);
|
||||||
|
|
||||||
static level::level_enum default_level();
|
|
||||||
|
|
||||||
level::level_enum level() const;
|
level::level_enum level() const;
|
||||||
|
|
||||||
const std::string &name() const;
|
const std::string &name() const;
|
||||||
@ -339,7 +337,7 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
std::string name_;
|
std::string name_;
|
||||||
std::vector<sink_ptr> sinks_;
|
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};
|
spdlog::level_t flush_level_{level::off};
|
||||||
err_handler custom_err_handler_{nullptr};
|
err_handler custom_err_handler_{nullptr};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user