-
Notifications
You must be signed in to change notification settings - Fork 39
alot #20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alot #20
Conversation
Sora/Utils/Logger/Logger.swift
Outdated
.joined(separator: "\n---\n") | ||
dateFormatter.dateFormat = "dd-MM-yyyy HH:mm:ss" | ||
return logs.map { "[\(dateFormatter.string(from: $0.timestamp))] [\($0.type)] \($0.message)" } | ||
.joined(separator: "\n----------------------------------------------------------\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make this back to small because of small screen devices
Sora/Utils/Logger/Logger.swift
Outdated
func log(_ message: String, level: LogLevel = .info) { | ||
let entry = (level: level, message: message, timestamp: Date()) | ||
func log(_ message: String, type: String = "General") { | ||
// Check if the log type is enabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the image in the HStacks
more logging, enable which type of logs you catch (so log filtering<-- also improves performance),