mirror of
https://github.com/gabime/spdlog.git
synced 2026-01-02 01:47:54 +08:00
Add full date to stdout tests
This commit is contained in:
@@ -72,8 +72,14 @@ TEST_CASE("stderr_color_mt", "[stderr]") {
|
||||
spdlog::drop_all();
|
||||
}
|
||||
|
||||
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||
TEST_CASE("show_utc_offset", "[stdout]") {
|
||||
auto l = spdlog::stdout_color_mt("test");
|
||||
l->set_pattern("[%c %z] [%n] [%^%l%$] %v");
|
||||
l->info("Full date");
|
||||
spdlog::drop_all();
|
||||
}
|
||||
|
||||
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
|
||||
TEST_CASE("wchar_api", "[stdout]") {
|
||||
auto l = spdlog::stdout_logger_st("wchar_logger");
|
||||
l->set_pattern("%+");
|
||||
@@ -86,5 +92,4 @@ TEST_CASE("wchar_api", "[stdout]") {
|
||||
SPDLOG_LOGGER_DEBUG(l, L"Test SPDLOG_LOGGER_DEBUG {}", L"param");
|
||||
spdlog::drop_all();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user