Skip to content
OSLog (aka Unified Logging) backend for Apple’s `swift-log`
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
Sources/LoggingOSLog initial commit Aug 18, 2019
.gitignore initial commit Aug 18, 2019
.swift-version initial commit Aug 18, 2019
Package.swift specify supported platforms Sep 20, 2019 Fix import statement in README Sep 20, 2019


OSLog logging backend for swift-log.

Getting Started

If you're adding through Xcode's Swift Package Manager integration (Xcode 11 and higher), you can simply use:

And use 0.1.0 as the version. If adding as a dependency in your Package.swift:

.package(url: "", .from("0.1.0"))


During app startup/initialization:

import Logging
import LoggingOSLog

/// Configure logging system to use OSLog logging backend


let logger = Logger(label: "com.yourcompany.yourawesomeapp")

/// ..."Unified Logging is pretty cool.")

For more details on all the features of the Swift Logging API, check out the swift-log repo.

You can’t perform that action at this time.