mirror of
https://github.com/gabime/spdlog.git
synced 2025-04-01 02:42:41 +08:00
fixed shadow warnings in gcc
This commit is contained in:
parent
faa184ce24
commit
12800ac466
@ -31,13 +31,13 @@ inline spdlog::async_logger::async_logger(const std::string& logger_name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline spdlog::async_logger::async_logger(const std::string& logger_name,
|
inline spdlog::async_logger::async_logger(const std::string& logger_name,
|
||||||
sinks_init_list sinks,
|
sinks_init_list sinks_list,
|
||||||
size_t queue_size,
|
size_t queue_size,
|
||||||
const async_overflow_policy overflow_policy,
|
const async_overflow_policy overflow_policy,
|
||||||
const std::function<void()>& worker_warmup_cb,
|
const std::function<void()>& worker_warmup_cb,
|
||||||
const std::chrono::milliseconds& flush_interval_ms,
|
const std::chrono::milliseconds& flush_interval_ms,
|
||||||
const std::function<void()>& worker_teardown_cb) :
|
const std::function<void()>& worker_teardown_cb) :
|
||||||
async_logger(logger_name, sinks.begin(), sinks.end(), queue_size, overflow_policy, worker_warmup_cb, flush_interval_ms, worker_teardown_cb) {}
|
async_logger(logger_name, sinks_list.begin(), sinks_list.end(), queue_size, overflow_policy, worker_warmup_cb, flush_interval_ms, worker_teardown_cb) {}
|
||||||
|
|
||||||
inline spdlog::async_logger::async_logger(const std::string& logger_name,
|
inline spdlog::async_logger::async_logger(const std::string& logger_name,
|
||||||
sink_ptr single_sink,
|
sink_ptr single_sink,
|
||||||
|
@ -33,7 +33,7 @@ public:
|
|||||||
virtual void log(const details::log_msg& msg) override;
|
virtual void log(const details::log_msg& msg) override;
|
||||||
virtual void flush() override;
|
virtual void flush() override;
|
||||||
|
|
||||||
void set_color(level::level_enum level, const std::string& color);
|
void set_color(level::level_enum color_level, const std::string& color);
|
||||||
|
|
||||||
/// Formatting codes
|
/// Formatting codes
|
||||||
const std::string reset = "\033[00m";
|
const std::string reset = "\033[00m";
|
||||||
@ -101,9 +101,9 @@ inline void ansicolor_sink::flush()
|
|||||||
sink_->flush();
|
sink_->flush();
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void ansicolor_sink::set_color(level::level_enum level, const std::string& color)
|
inline void ansicolor_sink::set_color(level::level_enum color_level, const std::string& color)
|
||||||
{
|
{
|
||||||
colors_[level] = color;
|
colors_[color_level] = color;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline ansicolor_sink::~ansicolor_sink()
|
inline ansicolor_sink::~ansicolor_sink()
|
||||||
|
Loading…
Reference in New Issue
Block a user