Hello,
The expected result of the following commands is a new entry in /var/log/mail.log with the content "test".
The actual result is a complete absence of information, as if the commands were never executed.
>sudo touch /var/log/mail.log
>syslog -s -k Facility mail Message test
>sudo tail -5 -f /var/log/mail.log
The same holds with any standard (unix) syslog facility.
The following daemons are involved in the problem:
com.apple.logd
com.apple.syslogd
com.apple.aslmanager
com.apple.emond.aslmanager
I unloaded /System/Library/LaunchDaemons/com.apple.syslogd and run /usr/bin/syslogd -d from the command line. According to the manual, I expected the server to stay attached to the controlling terminal and print debugging messages. The actual result is that the server does *not* stay attached to the terminal, without any warning or error.
Then I modified com.apple.syslogd to run the command in debug mode, and redirected standard-output and standard-error to a custom file. Reloading the server returns no debug output.
I would like to know if you have the same problem, or have a solution.
This is macOS 10.12.4