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 {