-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #190 from GuoXiCheng/dev-c
update LayoutInspectService & log with LogUtil
- Loading branch information
Showing
6 changed files
with
67 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.android.skip | ||
|
||
import android.app.Application | ||
import com.blankj.utilcode.util.LogUtils | ||
import com.blankj.utilcode.util.Utils | ||
|
||
class SKIPApp : Application() { | ||
override fun onCreate() { | ||
super.onCreate() | ||
Utils.init(this) | ||
|
||
LogUtils.getConfig() | ||
.setLogSwitch(true) // 是否输出日志开关 | ||
.setConsoleSwitch(true) // 是否在控制台输出日志开关 | ||
.setGlobalTag("SKIP_APP") // 全局标签 | ||
.setLog2FileSwitch(true) // 是否写入日志文件开关 | ||
.setDir("") // 日志文件目录,默认为空,放在 /storage/emulated/0/Android/data/com.android.skip/cache/logs/ | ||
.setFilePrefix("log") // 日志文件前缀 | ||
.setBorderSwitch(true) // 日志边框开关 | ||
.setConsoleFilter(LogUtils.V) // 控制台过滤器 | ||
.setFileFilter(LogUtils.V) // 文件过滤器 | ||
.setStackDeep(1) // 栈深度 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters