Skip to content

Commit 6c52644

Browse files
committed
Make OSLogLogger available starting from macOS 10.12 (and accompanying platforms)
1 parent 9fd577e commit 6c52644

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Sources/OSLogLogger+NoSendable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import Logging
44

55

66

7+
@available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *)
78
extension OSLogLogger {
89

910
/**

Sources/OSLogLogger+WithSendable.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Logging
77
/* The @Sendable attribute is only available starting at Swift 5.5.
88
* We make these methods only available starting at Swift 5.8 for our convenience (avoids creating another Package@swift-... file)
99
* and because for Swift <5.8 the non-@Sendable variants of the methods are available. */
10+
@available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *)
1011
extension OSLogLogger {
1112

1213
/**

Sources/OSLogLogger.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import Logging
55

66

77

8+
@available(macOS 10.12, tvOS 10.0, iOS 10.0, watchOS 3.0, *)
89
public struct OSLogLogger : LogHandler {
910

1011
public static let pubMetaPrefix = "pub."

0 commit comments

Comments
 (0)