We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c743b commit cb9e7cdCopy full SHA for cb9e7cd
1 file changed
README.md
@@ -6,6 +6,8 @@ The logs captured are the same ones visible in Console.app.
6
7
## Usage
8
9
+Capturing logs for one process:
10
+
11
```swift
12
// Specify the process identifier of which to capture logs.
13
let pid: pid_t = ...
@@ -18,4 +20,12 @@ Task {
18
20
}
19
21
```
22
23
+Logs of multiple processes can also be captures with another initializer:
24
+```swift
25
+public static func logs(for processIDs: [pid_t], flags: ActivityStreamOptions) -> AsyncStream<LogMessage>
26
+```
27
28
+To capture logs of all processes, use the following initializer:
29
30
+public static func logs(flags: ActivityStreamOptions) -> AsyncStream<LogMessage>
31
0 commit comments