We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 557d38d commit 66b771bCopy full SHA for 66b771b
Sources/LogLine.swift
@@ -5,7 +5,11 @@ import Logging
5
6
7
8
-public struct LogLine : Hashable, Codable, JSONLogger_Sendable {
+/* 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 {
13
14
public var level: Logger.Level
15
public var message: String
0 commit comments