From e8770de5979ab502630bd5cdcae029cabf38c2ba Mon Sep 17 00:00:00 2001 From: kunfei Date: Wed, 18 Sep 2019 12:21:17 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/utils/LogUtils.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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