Skip to content

Commit

Permalink
Merge pull request #3 from Rightpoint/2023improvements
Browse files Browse the repository at this point in the history
2023 Improvements
  • Loading branch information
LeviGustin authored Oct 26, 2023
2 parents ceb8495 + 12588fd commit ac2f6a5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/RPLogging/Log.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ open class Log {
let message = "\(object())"
let levelString = useEmoji ? level.emoji : "|" + level.name.uppercased() + "|"
let locationString = "\(objectName) \(functionName) line \(line)"
let logString = "\(levelString)\(dateString) \(locationString):\n\(message)"
let logString = "\(levelString) \(dateString) \(locationString):\n\(message)"

handle(message: Message(
category: category,
Expand Down
2 changes: 1 addition & 1 deletion Sources/RPLogging/LogHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ open class OSLogHandler: LogHandler {

public func handle(message: Log.Message) {
if #available(macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0, *) {
osLog(level: message.level, category: message.category, message: message.message)
osLog(level: message.level, category: message.category, message: message.description)
} else {
print(message.description)
}
Expand Down

0 comments on commit ac2f6a5

Please sign in to comment.