pull/34/head
kunfei 5 years ago
parent d3456e0b4d
commit e8770de597
  1. 4
      app/src/main/java/io/legado/app/utils/LogUtils.kt

@ -17,7 +17,7 @@ object LogUtils {
addFileHandler( addFileHandler(
this, this,
Level.INFO, 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" const val DATE_PATTERN_FULL = "yyyy-MM-dd HH:mm:ss"
private const val DATE_PATTERN = "yyyy-MM-dd"
/** /**
* 为log添加控制台handler * 为log添加控制台handler

Loading…
Cancel
Save