Initial implementation

This commit is contained in:
T. R. Bernstein
2026-02-27 22:18:00 +01:00
commit fec4a037db
6 changed files with 161 additions and 0 deletions

31
Package.swift Normal file
View File

@@ -0,0 +1,31 @@
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "swift-log-oslog",
platforms: [.macOS(.v11), .iOS(.v14), .tvOS(.v14), .watchOS(.v6)],
products: [
.library(
name: "LoggingOSLog",
targets: ["LoggingOSLog"]
)
],
dependencies: [
.package(url: "https://github.com/apple/swift-log", from: "1.10.1"),
],
targets: [
.target(
name: "LoggingOSLog",
dependencies: [.product(name: "Logging", package: "swift-log")],
path: "Sources/Logging OSLog"
),
.testTarget(
name: "LoggingOSLogTests",
dependencies: [
.product(name: "Logging", package: "swift-log"),
"LoggingOSLog"
],
path: "Tests/Logging OSLog Tests",
),
]
)