|
|
|
@ -487,8 +487,8 @@ class full_formatter SPDLOG_FINAL:public flag_formatter
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// pattern_formatter inline impl
|
|
|
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
inline spdlog::pattern_formatter::pattern_formatter(const std::string& pattern, pattern_time_type pattern_time)
|
|
|
|
|
: _pattern_time(pattern_time)
|
|
|
|
|
inline spdlog::pattern_formatter::pattern_formatter(const std::string& pattern, pattern_time_type pattern_time, std::string eol)
|
|
|
|
|
: _eol(move(eol)), _pattern_time(pattern_time)
|
|
|
|
|
{
|
|
|
|
|
compile_pattern(pattern);
|
|
|
|
|
}
|
|
|
|
@ -681,5 +681,5 @@ inline void spdlog::pattern_formatter::format(details::log_msg& msg)
|
|
|
|
|
f->format(msg, tm_time);
|
|
|
|
|
}
|
|
|
|
|
//write eol
|
|
|
|
|
msg.formatted.write(details::os::eol, details::os::eol_size);
|
|
|
|
|
msg.formatted.write(_eol.data(), _eol.size());
|
|
|
|
|
}
|
|
|
|
|