code formatting

This commit is contained in:
gabime 2018-07-23 00:13:52 +03:00
parent fe73255452
commit 33329c80a9
7 changed files with 55 additions and 54 deletions

View File

@ -37,7 +37,6 @@ inline spdlog::logger::logger(std::string logger_name, spdlog::sink_ptr single_s
inline spdlog::logger::~logger() = default;
inline void spdlog::logger::set_formatter(std::unique_ptr<spdlog::formatter> f)
{
for (auto &sink : sinks_)

View File

@ -81,7 +81,6 @@ public:
return tp_;
}
// Set global formatter. Each sink in each logger will get a clone of this object
void set_formatter(std::unique_ptr<formatter> formatter)
{
@ -169,7 +168,10 @@ public:
}
private:
registry_t<Mutex>() : formatter_(new pattern_formatter("%+")){}
registry_t<Mutex>()
: formatter_(new pattern_formatter("%+"))
{
}
~registry_t<Mutex>()
{