Separate metadata by a unicode arrow in log

Use a single unicode right arrow instead of the two char ASCII right
arrow to separate the metadata from the actual log message. This is just
a preference decision and has no functional background.
This commit is contained in:
T. R. Bernstein
2026-03-02 19:20:19 +01:00
parent b48562c2b0
commit e18692fd4d
2 changed files with 3 additions and 3 deletions

View File

@@ -85,8 +85,8 @@ library maps a reverse domain style label to the subsystem and category
parameters of the unified logging system. See
``/LoggingOSLog/LoggingOSLog/init(label:)`` for more information.
Metadata is appended as JSON to the logged message after an ASCII right
arrow ("->").
Metadata is appended as JSON to the logged message after a simple unicode right
arrow ("").
### What this library does not supply
This library does not implement any of the interpolation privacy features of

View File

@@ -81,7 +81,7 @@ public struct LoggingOSLog: LogHandler {
let metadataCSV = Self.joinedMetadata(self.metadata, self.metadataProvider?.get(), metadata)
let messageParts = [message.description, metadataCSV]
let message = messageParts.compactMap { $0 }.joined(separator: " -> ")
let message = messageParts.compactMap { $0 }.joined(separator: " ")
self.oslogger.log(level: OSLogType.from(loggerLevel: level), "\(message, privacy: .public)")
}