Skip to content

Instantly share code, notes, and snippets.

@dreness
Created November 6, 2022 09:13
Show Gist options
  • Save dreness/7a68b803a3ca0a3fbb67492b139f106a to your computer and use it in GitHub Desktop.
Save dreness/7a68b803a3ca0a3fbb67492b139f106a to your computer and use it in GitHub Desktop.
logrc config for log(1) in macOS
# ~/.logrc config for log(1) in macOS
show:
--style compact
--color always
--last 4h
stream:
--info
--debug
--style ndjson
predicate:
errs 'messageType IN { "error", "fault" }'
mdns 'subsystem == "com.apple.mDNSResponder"'
prefs 'category == "cfprefsd"'
keys 'category == "cfprefsd" and eventMessage contains "wrote"'
kern 'sender == "kernel"'
ssl
'(subsystem == "com.apple.network") and '
'(category == "boringssl") and ((eventMessage contains "TRAFFIC_SECRET"))'
dnsfailure
'process == "symptomsd" and message contains "DNS failure"'
circles
'((process == "Circles") && (subsystem != "com.apple.CFnetwork") && '
'(subsystem != "com.apple.network") && '
'NOT (senderImagePath contains "CFNetwork") && '
'NOT (senderImagePath endsWith "RunningBoardServices"))'
dockerdesktop
'process matches ".*(ocker|vpnkit).*" || '
#'(process in {"taskgated-helper", "launchservicesd", "kernel"} && '
'(process in {"taskgated-helper", "kernel"} && '
'eventMessage contains[c] "docker")'
sps
'(subsystem == "com.apple.mDNSResponder") and '
'(category == "SPS")'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment