From f6685e5dd29b396c1d269337fe6543fa358918da Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 29 Sep 2019 18:49:58 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/utils/LogUtils.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 27c3015fe..1ae855b6b 100644 --- a/app/src/main/java/io/legado/app/utils/LogUtils.kt +++ b/app/src/main/java/io/legado/app/utils/LogUtils.kt @@ -28,7 +28,11 @@ object LogUtils { } private val fileHandler by lazy { - FileHandler(FileHelp.getCachePath() + File.separator + "app.log", 1024, 2).apply { + FileHandler( + FileHelp.getCachePath() + File.separator + "logs" + File.separator + "app.log", + 2048, + 10 + ).apply { formatter = object : Formatter() { override fun format(record: LogRecord): String { // 设置文件输出格式