diff --git a/app/src/main/java/io/legado/app/utils/LogUtils.kt b/app/src/main/java/io/legado/app/utils/LogUtils.kt index 6418a84c4..88778d653 100644 --- a/app/src/main/java/io/legado/app/utils/LogUtils.kt +++ b/app/src/main/java/io/legado/app/utils/LogUtils.kt @@ -17,7 +17,7 @@ object LogUtils { addFileHandler( this, Level.INFO, - FileHelp.getCachePath() + File.separator + System.currentTimeMillis() + ".log" + FileHelp.getCachePath() + File.separator + getCurrentDateStr(DATE_PATTERN) + ".log" ) } } @@ -28,8 +28,8 @@ object LogUtils { } } - // 正常的日期格式 const val DATE_PATTERN_FULL = "yyyy-MM-dd HH:mm:ss" + private const val DATE_PATTERN = "yyyy-MM-dd" /** * 为log添加控制台handler