From 91e3ae3c5d0e60b20f14f2bfb30c12f0637cee1d Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 1 Oct 2019 17:54:35 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/utils/LogUtils.kt | 4 +++- 1 file changed, 3 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 f8b8b6bb6..3dd8f3dfe 100644 --- a/app/src/main/java/io/legado/app/utils/LogUtils.kt +++ b/app/src/main/java/io/legado/app/utils/LogUtils.kt @@ -30,8 +30,10 @@ object LogUtils { } private val fileHandler by lazy { + val logFolder = FileHelp.getCachePath() + File.separator + "logs" + FileHelp.getFolder(logFolder) FileHandler( - FileHelp.getCachePath() + File.separator + "logs" + File.separator + "app.log", + logFolder + File.separator + "app.log", 2048, 10 ).apply {