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 cb33feb commit e0ebe4cCopy full SHA for e0ebe4c
1 file changed
README.md
@@ -58,5 +58,22 @@ lazy var appStatePublisher = _appState.publisher
58
.eraseToAnyPublisher()
59
```
60
61
+## Logging
62
+```swift
63
+struct SamplePersistenceMonitor: PersistenceMonitor {
64
+
65
+ func didReceive(_ monitor: any PersistenceMonitor, error: any Error) {
66
+ print("Error received: \(error.localizedDescription)")
67
+ }
68
69
+ func didReceive(_ monitor: any PersistenceMonitor, message: String) {
70
+ print("Message received: \(message)")
71
72
73
+}
74
75
+GoodPersistence.Configuration.configure(monitors: [SamplePersistenceMonitor()])
76
+```
77
78
## License
79
GoodPersistence is released under the MIT license. See [LICENSE](LICENSE.md) for details.
0 commit comments