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:
Diffstat (limited to 'include/spdlog/formatter.h')
-rw-r--r--include/spdlog/formatter.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/spdlog/formatter.h b/include/spdlog/formatter.h
index 8bf0f43f..39315764 100644
--- a/include/spdlog/formatter.h
+++ b/include/spdlog/formatter.h
@@ -29,11 +29,12 @@ class pattern_formatter SPDLOG_FINAL : public formatter
{
public:
- explicit pattern_formatter(const std::string& pattern, pattern_time_type pattern_time = pattern_time_type::local);
+ explicit pattern_formatter(const std::string& pattern, pattern_time_type pattern_time = pattern_time_type::local, const std::string eol = spdlog::details::os::default_eol);
pattern_formatter(const pattern_formatter&) = delete;
pattern_formatter& operator=(const pattern_formatter&) = delete;
void format(details::log_msg& msg) override;
private:
+ const std::string _eol;
const std::string _pattern;
const pattern_time_type _pattern_time;
std::vector<std::unique_ptr<details::flag_formatter>> _formatters;