We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb9e7cd commit afd2422Copy full SHA for afd2422
2 files changed
Sources/LogStream/LogMessage.swift
@@ -8,7 +8,7 @@
8
import OSLog
9
10
/// Represents a log message captured from the activity logs.
11
-public struct LogMessage {
+public struct LogMessage: Hashable {
12
/// The log message string.
13
public let message: String
14
Sources/LogStream/OSLogType+Hashable.swift
@@ -0,0 +1,14 @@
1
+//
2
+// OSLogType+Hashable.swift
3
4
5
+// Created by Wouter Hennen on 22/05/2023.
6
7
+
+import OSLog
+extension OSLogType: Hashable {
+ public func hash(into hasher: inout Hasher) {
+ hasher.combine(self.rawValue)
+ }
+}
0 commit comments