I've been wrecking my brain trying to get the log stream
command on macos to work with a passed in pid.
I have an app FooBar
with a pid 12345
.
The command:
log stream --debug --info --process FooBar
Works perfectly fine. On using ps auf | grep "FooBar"
or the Activity Monitor
to get the app's pid, and then doing the below command:
log stream --debug --info --process 12345
I never get any logs. Can anyone please tell me if I'm doing something wrong? I can't find any example of anyone actually using the pid online.