[console] fix: 修复跨年时日志文件名日期错乱问题 (#2830)

fix: 修复日期混淆问题

修正 DailySplitLogRecorder 中日期格式化模式中使用错误的模式字符串的问题。将大写的 "YYYY" 更正为小写的 "yyyy",以确保在跨年时生成的日志文件显示正确的年份。
This commit is contained in:
RainSpark 2024-01-26 05:07:01 +08:00 committed by GitHub
parent 78446ab367
commit 12533859ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,7 @@ public open class DailySplitLogRecorder(
protected val directory: Path,
protected val base: FrontendBase,
protected val dateFormatter: DateTimeFormatter = DateTimeFormatter.ofPattern(
"YYYY-MM-dd'.log'"
"yyyy-MM-dd'.log'"
),
) : LogRecorder() {
@JvmField