Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e957caf031 | ||
|
|
48fdc144c1 |
2
.spi.yml
2
.spi.yml
@@ -1,4 +1,4 @@
|
|||||||
version: 1
|
version: 1
|
||||||
builder:
|
builder:
|
||||||
configs:
|
configs:
|
||||||
- documentation_targets: [LoggingOSLog]
|
- documentation_targets: [LoggingOSLog]
|
||||||
|
|||||||
@@ -78,6 +78,11 @@ library maps a reverse domain style label to the subsystem and category
|
|||||||
parameters of the unified logging system. See
|
parameters of the unified logging system. See
|
||||||
``/LoggingOSLog/LoggingOSLog/init(label:)`` for more information.
|
``/LoggingOSLog/LoggingOSLog/init(label:)`` for more information.
|
||||||
|
|
||||||
|
### What this library does not supply
|
||||||
|
This library does not implement any of the interpolation privacy features of
|
||||||
|
the unified logging system, i.e. there is no way to redact or align a meta
|
||||||
|
information, like the `Logging` API would allow.
|
||||||
|
|
||||||
[subsystem]: https://developer.apple.com/documentation/os/generating-log-messages-from-your-code#:~:text=The%20subsystem%20string,for%20each%20subsystem%20string.
|
[subsystem]: https://developer.apple.com/documentation/os/generating-log-messages-from-your-code#:~:text=The%20subsystem%20string,for%20each%20subsystem%20string.
|
||||||
[category]: https://developer.apple.com/documentation/os/generating-log-messages-from-your-code#:~:text=The%20category%20string,for%20these%20strings.
|
[category]: https://developer.apple.com/documentation/os/generating-log-messages-from-your-code#:~:text=The%20category%20string,for%20these%20strings.
|
||||||
|
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ public struct LoggingOSLog: LogHandler {
|
|||||||
let messageParts = [message.description, metadataCSV]
|
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)")
|
self.oslogger.log(level: OSLogType.from(loggerLevel: level), "\(message, privacy: .public)")
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user