pull/36/head
kunfei 5 years ago
parent 1ce32423a9
commit f6685e5dd2
  1. 6
      app/src/main/java/io/legado/app/utils/LogUtils.kt

@ -28,7 +28,11 @@ object LogUtils {
} }
private val fileHandler by lazy { 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() { formatter = object : Formatter() {
override fun format(record: LogRecord): String { override fun format(record: LogRecord): String {
// 设置文件输出格式 // 设置文件输出格式

Loading…
Cancel
Save