Merge pull request #211 from hvellyr/master

RFC: Support custom eol style
This commit is contained in:
Gabi Melman
2016-05-14 00:09:13 +03:00
2 changed files with 9 additions and 0 deletions

View File

@@ -619,7 +619,11 @@ inline void spdlog::pattern_formatter::format(details::log_msg& msg)
f->format(msg, tm_time);
}
//write eol
#if defined(SPDLOG_EOL)
msg.formatted << SPDLOG_EOL;
#else
msg.formatted << details::os::eol();
#endif
}
catch(const fmt::FormatError& e)
{