Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2018-06-26 01:13:02 +0300
committergabime <gmelman1@gmail.com>2018-06-26 01:13:02 +0300
commita6e2f23780a916cc47c88363cfe13d899cee749b (patch)
treed07954a3f467dd696028971f9d23ad58368c198d /include/spdlog/formatter.h
parent87e013534c347073a551d4288f20a9987c6f90f4 (diff)
Pattern formatter optimizations
Diffstat (limited to 'include/spdlog/formatter.h')
-rw-r--r--include/spdlog/formatter.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/include/spdlog/formatter.h b/include/spdlog/formatter.h
index af54e88c..667120ca 100644
--- a/include/spdlog/formatter.h
+++ b/include/spdlog/formatter.h
@@ -20,28 +20,6 @@ public:
virtual ~formatter() = default;
virtual void format(const details::log_msg &msg, fmt::memory_buffer &dest) = 0;
};
-
-namespace details {
-class flag_formatter;
-}
-
-class pattern_formatter SPDLOG_FINAL : public formatter
-{
-public:
- explicit pattern_formatter(const std::string &pattern, pattern_time_type pattern_time = pattern_time_type::local,
- std::string eol = spdlog::details::os::default_eol);
- pattern_formatter(const pattern_formatter &) = default;
- pattern_formatter &operator=(const pattern_formatter &) = default;
- void format(const details::log_msg &msg, fmt::memory_buffer &dest) override;
-
-private:
- const std::string eol_;
- const pattern_time_type pattern_time_;
- std::vector<std::unique_ptr<details::flag_formatter>> formatters_;
- std::tm get_time(const details::log_msg &msg);
- void handle_flag(char flag);
- void compile_pattern(const std::string &pattern);
-};
} // namespace spdlog
#include "details/pattern_formatter_impl.h"