mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-28 17:19:34 +08:00
code formatting
This commit is contained in:
@@ -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_)
|
||||
|
@@ -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>()
|
||||
{
|
||||
|
Reference in New Issue
Block a user