OSLog is a powerful framework with native integration into Apple's apps (e.g. Xcode and Console). It makes sense for SimpleLogging to support it out of the box. This should be easily possible with just a LogChannel extension with a new static var osLog
This should also remove the severity name from the log line, as OSLog captures that as metadata. I think the most elegant way to do that, is to make LogChannel's logSeverityNameStyle Optional
|
/// The style of the severity part of a log line in this channel |
|
public let logSeverityNameStyle: SeverityNameStyle |
OSLog is a powerful framework with native integration into Apple's apps (e.g. Xcode and Console). It makes sense for SimpleLogging to support it out of the box. This should be easily possible with just a
LogChannelextension with a newstatic var osLogThis should also remove the severity name from the log line, as OSLog captures that as metadata. I think the most elegant way to do that, is to make
LogChannel'slogSeverityNameStyleOptionalSwift-Simple-Logging/Sources/SimpleLogging/LogChannel.swift
Lines 29 to 30 in abbf40d