Skip to content

Commit 1e93835

Browse files
authored
Merge pull request #86 from zuhlke/log-monitor-errors
Add warning about multiple LogMonitor instances
2 parents c2c814b + 9eabb5a commit 1e93835

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/Support/Logging/LogMonitor/LogMonitor.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import UniformTypeIdentifiers
99
///
1010
/// `LogMonitor` continuously monitors the system log store for new entries and persists them
1111
/// to a SwiftData model container.
12+
///
13+
/// - Warning: Only one instance of `LogMonitor` should be created per application.
14+
/// Creating multiple instances may result in unpredictable behavior.
1215
public class LogMonitor {
1316
private static let logger = Logger(subsystem: "com.zuhlke.Support", category: "LogMonitor")
1417

0 commit comments

Comments
 (0)