Skip to content

Commit

Permalink
Add log_macOS_ifdbundle.sh
Browse files Browse the repository at this point in the history
This script get logs from the process "com.apple.ifdbundle"
  • Loading branch information
LudovicRousseau committed Aug 25, 2022
1 parent b14d04b commit deebf6f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions log_macOS_ifdbundle.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

set -e

# default level
arg=--info

args=`getopt dbe $*` ; errcode=$?; set -- $args

if [ $errcode != 0 ]
then
echo "Usage: $0 [-d]"
echo "-d: debug level (default is info level)"
exit 2
fi

# check the script arguments
for i
do
case "$i"
in
-d)
arg=--debug
break;;
esac
done

log stream --predicate 'process = "com.apple.ifdbundle"' $arg

0 comments on commit deebf6f

Please sign in to comment.