不跟系统的暗黑模式,保持light模式;增加本地日志的读取;接入firebase

This commit is contained in:
oscarz
2024-08-29 18:01:49 +08:00
parent 6d6776b9fd
commit 8500300d18
34 changed files with 25575 additions and 1523 deletions

View File

@ -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 // FileDestinationURL
}