Created
May 19, 2016 05:29
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.