|
|
@ -215,7 +215,7 @@ private:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::tm tm = spdlog::details::os::localtime();
|
|
|
|
std::tm tm = spdlog::details::os::localtime();
|
|
|
|
fmt::MemoryWriter w;
|
|
|
|
fmt::MemoryWriter w;
|
|
|
|
w.write("{}_{:04d}-{:02d}-{:02d}_{:02d}-{:02d}.{}", basename, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, extension);
|
|
|
|
w.write("{}_{:04d}-{:02d}-{:02d}.{}", basename, tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, extension);
|
|
|
|
return w.str();
|
|
|
|
return w.str();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -230,4 +230,4 @@ private:
|
|
|
|
typedef daily_file_sink<std::mutex> daily_file_sink_mt;
|
|
|
|
typedef daily_file_sink<std::mutex> daily_file_sink_mt;
|
|
|
|
typedef daily_file_sink<details::null_mutex> daily_file_sink_st;
|
|
|
|
typedef daily_file_sink<details::null_mutex> daily_file_sink_st;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|