Skip to content

Add OSLog channel #3

Description

@KyNorthstar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions