不跟系统的暗黑模式,保持light模式;增加本地日志的读取;接入firebase
This commit is contained in:
@ -28,6 +28,7 @@ func setupLogging() {
|
||||
|
||||
|
||||
console.format = "$DHH:mm:ss$d $C$L$c $N.$F:$l - $M"
|
||||
file.format = "$Dyyyy-MM-dd HH:mm:ss.SSS$d $C$L$c $N.$F:$l - $M"
|
||||
|
||||
// 自定义颜色
|
||||
console.levelColor.verbose = "⚪️ " // White
|
||||
@ -41,3 +42,12 @@ func setupLogging() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
// 获取日志文件路径
|
||||
func getLogFileURL() -> URL? {
|
||||
return logger.destinations
|
||||
.compactMap { $0 as? FileDestination }
|
||||
.first?.logFileURL // 获取第一个FileDestination的日志文件URL
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user