Commit d405027f authored by gabime's avatar gabime

renamed setColor

parent ddc9aa8b
......@@ -113,7 +113,7 @@ void color_example()
auto color_sink = std::make_shared<spd::sinks::ansicolor_sink>(console_out); // wraps around another sink
auto color_logger = spd::details::registry::instance().create("Color", color_sink);
color_logger->set_level(spd::level::trace);
color_sink->setColor(spd::level::info, color_sink->bold + color_sink->green);
color_sink->set_color(spd::level::info, color_sink->bold + color_sink->green);
color_logger->info("Testing color logger...");
color_logger->trace("Trace");
color_logger->debug("Debug");
......
......@@ -30,7 +30,7 @@ public:
virtual void log(const details::log_msg& msg) override;
virtual void flush() override;
void setColor(level::level_enum level, const std::string& color);
void set_color(level::level_enum level, const std::string& color);
/// \name Formatting codes
//@{
......@@ -124,7 +124,7 @@ inline void ansicolor_sink::flush()
sink_->flush();
}
inline void ansicolor_sink::setColor(level::level_enum level, const std::string& color)
inline void ansicolor_sink::set_color(level::level_enum level, const std::string& color)
{
colors_[level] = color;
}
......
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