Make Syslogd Log to File

1. Create the configuration file /etc/syslog.conf for syslogd daemon, file contents:

*.* /var/log/syslog

2. Edit a launchd configuration file:

/System/Library/LaunchDaemons/com.apple.syslogd.plist

Add the following two lines:

<string>-bsd_out</string>
<string>1</string>

right after <string>/usr/sbin/syslogd</string>.

3. Reboot to activate it.

UPDATE: All files must be in Unix text file format.

UPDATE: you may also manually restart the syslogd service:

launchctl remove com.apple.syslogd
launchctl load /System/Library/LaunchDaemons/com.apple.syslogd.plist

UPDATE: To check if it works, press Home button for a few times, and see if the /var/log/syslog file has been created.


One Comment

  1. Andy
    Posted February 21, 2008 at 3:23 pm | Permalink

    Hi George:

    I’ve followed exact steps you mentioned, but there is no syslog file in /var/log/, any idea?

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*