Skip to content

Instantly share code, notes, and snippets.

@geoffrepoli
Last active October 4, 2017 20:16
Show Gist options
  • Save geoffrepoli/40aeca0368ab3806c03a32e3d731d138 to your computer and use it in GitHub Desktop.
Save geoffrepoli/40aeca0368ab3806c03a32e3d731d138 to your computer and use it in GitHub Desktop.
# print only timestamp + log message
log show --style compact --info --debug --predicate 'subsystem == "com.apple.example"' \
| cut -d' ' -f1-2,4- \
| sed 's/\[.*:.*\]/:/g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment