|
|
@ -573,6 +573,8 @@ inline void spdlog::pattern_formatter::handle_flag(char flag)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inline void spdlog::pattern_formatter::format(details::log_msg& msg)
|
|
|
|
inline void spdlog::pattern_formatter::format(details::log_msg& msg)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try
|
|
|
|
{
|
|
|
|
{
|
|
|
|
for (auto &f : _formatters)
|
|
|
|
for (auto &f : _formatters)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -581,3 +583,8 @@ inline void spdlog::pattern_formatter::format(details::log_msg& msg)
|
|
|
|
//write eol
|
|
|
|
//write eol
|
|
|
|
msg.formatted.write(details::os::eol(), details::os::eol_size());
|
|
|
|
msg.formatted.write(details::os::eol(), details::os::eol_size());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
catch(const fmt::FormatError& e)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
throw spdlog_ex(fmt::format("formatting error while processing format string: {}", e.what()));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|