mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-26 15:39:03 +08:00
Merge pull request #211 from hvellyr/master
RFC: Support custom eol style
This commit is contained in:
commit
fe8fc8c638
@ -619,7 +619,11 @@ inline void spdlog::pattern_formatter::format(details::log_msg& msg)
|
|||||||
f->format(msg, tm_time);
|
f->format(msg, tm_time);
|
||||||
}
|
}
|
||||||
//write eol
|
//write eol
|
||||||
|
#if defined(SPDLOG_EOL)
|
||||||
|
msg.formatted << SPDLOG_EOL;
|
||||||
|
#else
|
||||||
msg.formatted << details::os::eol();
|
msg.formatted << details::os::eol();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
catch(const fmt::FormatError& e)
|
catch(const fmt::FormatError& e)
|
||||||
{
|
{
|
||||||
|
@ -63,3 +63,8 @@
|
|||||||
// Uncomment to enable usage of wchar_t for file names on Windows.
|
// Uncomment to enable usage of wchar_t for file names on Windows.
|
||||||
// #define SPDLOG_WCHAR_FILENAMES
|
// #define SPDLOG_WCHAR_FILENAMES
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
// uncomment the below to override spdlog's default eol
|
||||||
|
// #define SPDLOG_EOL "\n"
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user