Skip to content

Instantly share code, notes, and snippets.

@solidsnack
Created May 19, 2016 05:29
Show Gist options
  • Save solidsnack/f80c6d7187f07b46964ba62192ce903f to your computer and use it in GitHub Desktop.
Save solidsnack/f80c6d7187f07b46964ba62192ce903f to your computer and use it in GitHub Desktop.
Enable debug and info level logs for ASL (Syslog on Mac OS X)
#!/bin/bash
set -o errexit -o nounset -o pipefail
sudo patch -p0 <<\ASLCONF
--- /etc/asl.conf 2016-05-18 22:05:48.000000000 -0700
+++ /etc/asl.conf 2016-05-18 22:06:16.000000000 -0700
@@ -20,8 +20,8 @@
# ignore "internal" facility
? [= Facility internal] ignore
-# save everything from emergency to notice
-? [<= Level notice] store
+# save everything
+? [<= Level debug] store
# Rules for /var/log/system.log
> system.log mode=0640 format=bsd rotate=seq compress file_max=5M all_max=50M
ASLCONF
sudo killall -HUP syslogd
@medington
Copy link

Have you by chance tested this on macOS 10.12 (Sierra)? I can't seem to get debug level messages to work at all with these changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment