mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
Code formatting
This commit is contained in:
@@ -122,7 +122,7 @@ inline void pad6(size_t n, fmt::memory_buffer &dest)
|
||||
dest.push_back('0');
|
||||
dest.push_back('0');
|
||||
dest.push_back('0');
|
||||
}
|
||||
}
|
||||
append_int(n, dest);
|
||||
}
|
||||
|
||||
|
@@ -26,8 +26,6 @@ public:
|
||||
file_helper_.open(filename, truncate);
|
||||
}
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
void sink_it_(const details::log_msg &, const fmt::memory_buffer &formatted) override
|
||||
{
|
||||
|
@@ -18,7 +18,7 @@
|
||||
namespace spdlog {
|
||||
namespace sinks {
|
||||
|
||||
template <typename Mutex>
|
||||
template<typename Mutex>
|
||||
class dist_sink : public sink
|
||||
{
|
||||
public:
|
||||
@@ -60,7 +60,6 @@ public:
|
||||
private:
|
||||
Mutex mutex_;
|
||||
std::vector<std::shared_ptr<sink>> sinks_;
|
||||
|
||||
};
|
||||
|
||||
using dist_sink_mt = dist_sink<std::mutex>;
|
||||
|
@@ -18,17 +18,17 @@ public:
|
||||
: formatter_(std::unique_ptr<spdlog::formatter>(new pattern_formatter("%+")))
|
||||
{
|
||||
}
|
||||
//
|
||||
// explicit sink(const std::string &formatter_pattern)
|
||||
// : formatter_(std::unique_ptr<spdlog::formatter>(new pattern_formatter(formatter_pattern)))
|
||||
// {
|
||||
// }
|
||||
//
|
||||
// // sink with custom formatter
|
||||
// explicit sink(std::unique_ptr<spdlog::formatter> sink_formatter)
|
||||
// : formatter_(std::move(sink_formatter))
|
||||
// {
|
||||
// }
|
||||
//
|
||||
// explicit sink(const std::string &formatter_pattern)
|
||||
// : formatter_(std::unique_ptr<spdlog::formatter>(new pattern_formatter(formatter_pattern)))
|
||||
// {
|
||||
// }
|
||||
//
|
||||
// // sink with custom formatter
|
||||
// explicit sink(std::unique_ptr<spdlog::formatter> sink_formatter)
|
||||
// : formatter_(std::move(sink_formatter))
|
||||
// {
|
||||
// }
|
||||
|
||||
virtual ~sink() = default;
|
||||
|
||||
@@ -60,7 +60,6 @@ public:
|
||||
formatter_ = std::move(sink_formatter);
|
||||
}
|
||||
|
||||
|
||||
protected:
|
||||
level_t level_{level::trace};
|
||||
std::unique_ptr<spdlog::formatter> formatter_;
|
||||
|
Reference in New Issue
Block a user