mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
bug问题:日期格式有空格和冒号,文件夹名API 21下出错
This commit is contained in:
@@ -66,7 +66,7 @@ object LogUtils {
|
||||
}
|
||||
}
|
||||
}
|
||||
val date = getCurrentDateStr(TIME_PATTERN)
|
||||
val date = getCurrentDateStr(TIME_PATTERN).replace(" ", "_").replace(":", "-")
|
||||
val logPath = FileUtils.getPath(root = logFolder, "appLog-$date.txt")
|
||||
return AsyncFileHandler(logPath).apply {
|
||||
formatter = object : java.util.logging.Formatter() {
|
||||
|
||||
Reference in New Issue
Block a user