Skip to content

Commit

Permalink
renamed setColor
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Mar 30, 2016
1 parent ddc9aa8 commit d405027
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
4 changes: 2 additions & 2 deletions include/spdlog/sinks/ansicolor_sink.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ansicolor_sink : public sink {
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
//@{
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit d405027

Please sign in to comment.