mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-09 22:20:49 +08:00
Update test_daily_logger.cpp
This commit is contained in:
parent
dc030ec53c
commit
8bd5f4f883
@ -32,10 +32,11 @@ TEST_CASE("daily_logger with dateonly calculator", "[daily_logger]")
|
|||||||
|
|
||||||
#ifdef SPDLOG_WCHAR_FILENAMES
|
#ifdef SPDLOG_WCHAR_FILENAMES
|
||||||
spdlog::memory_buf_t buf;
|
spdlog::memory_buf_t buf;
|
||||||
spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf);
|
|
||||||
# ifdef SPDLOG_USE_STD_FORMAT
|
# ifdef SPDLOG_USE_STD_FORMAT
|
||||||
|
spdlog::details::os::wstr_to_utf8buf(w, buf);
|
||||||
auto &filename = buf;
|
auto &filename = buf;
|
||||||
# else
|
# else
|
||||||
|
spdlog::details::os::wstr_to_utf8buf(fmt::to_string(w), buf);
|
||||||
auto filename = fmt::to_string(buf);
|
auto filename = fmt::to_string(buf);
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
@ -199,4 +200,4 @@ TEST_CASE("daily_logger rotate", "[daily_file_sink]")
|
|||||||
test_rotate(days_to_run, 10, 10);
|
test_rotate(days_to_run, 10, 10);
|
||||||
test_rotate(days_to_run, 11, 10);
|
test_rotate(days_to_run, 11, 10);
|
||||||
test_rotate(days_to_run, 20, 10);
|
test_rotate(days_to_run, 20, 10);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user