aboutsummaryrefslogtreecommitdiffstats
path: root/bin/log
diff options
context:
space:
mode:
Diffstat (limited to 'bin/log')
-rwxr-xr-xbin/log12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/log b/bin/log
new file mode 100755
index 0000000..7d37ca5
--- /dev/null
+++ b/bin/log
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# log
+# Stream logs from the application.
+
+application_name="$(
+ /usr/libexec/PlistBuddy \
+ -c 'Print :CFBundleName' \
+ Info.plist
+)"
+
+log stream --predicate "process == '${application_name}'"