mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +00:00
Co-Authored-By: cranci <100066266+cranci1@users.noreply.github.com>
This commit is contained in:
parent
65587f8e1d
commit
d5aa75e2d2
1 changed files with 2 additions and 2 deletions
|
|
@ -35,7 +35,7 @@ class Logger {
|
|||
|
||||
func getLogs() -> String {
|
||||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.dateFormat = "dd-MM-yyyy HH:mm:ss"
|
||||
dateFormatter.dateFormat = "dd-MM HH:mm:ss"
|
||||
return logs.map { "[\(dateFormatter.string(from: $0.timestamp))] [\($0.type)] \($0.message)" }
|
||||
.joined(separator: "\n----\n")
|
||||
}
|
||||
|
|
@ -47,7 +47,7 @@ class Logger {
|
|||
|
||||
private func saveLogToFile(_ log: LogEntry) {
|
||||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.dateFormat = "dd-MM-yyyy HH:mm:ss"
|
||||
dateFormatter.dateFormat = "dd-MM HH:mm:ss"
|
||||
|
||||
let logString = "[\(dateFormatter.string(from: log.timestamp))] [\(log.type)] \(log.message)\n---\n"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue