Skip to content

Commit 66b771b

Browse files
committed
Fix compilation for Swift 5.5
1 parent 557d38d commit 66b771b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sources/LogLine.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ import Logging
55

66

77

8-
public struct LogLine : Hashable, Codable, JSONLogger_Sendable {
8+
/* Technically Sendable is available starting at Swift 5.5, but swift-log was not ready at the time so we have to use Swift 5.6 instead. */
9+
#if swift(>=5.6)
10+
extension LogLine : JSONLogger_Sendable {}
11+
#endif
12+
public struct LogLine : Hashable, Codable {
913

1014
public var level: Logger.Level
1115
public var message: String

0 commit comments

Comments
 (0)