8 Replies
      Latest reply on May 26, 2017 4:26 AM by one-to-one
      one-to-one Level 1 Level 1 (0 points)

        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

        • Re: syslog's unexpected behaviour
          one-to-one Level 1 Level 1 (0 points)

          >379 Views 0 Replies

           

          Really?

            • Re: syslog's unexpected behaviour
              eskimo Apple Staff Apple Staff (11,625 points)

              Really?

              Indeed.  The problem here is that you’ve asked a user level question (albeit an advanced user level question) in a developer forum.  You might have better luck asking over in Apple Support Communities, run by AppleCare, and specifically the in Business and Education topic areas, where you’re more likely to find folks with syslogd experience.

              Share and Enjoy

              Quinn “The Eskimo!”
              Apple Developer Relations, Developer Technical Support, Core OS/Hardware
              let myEmail = "eskimo" + "1" + "@apple.com"

                • Re: syslog's unexpected behaviour
                  one-to-one Level 1 Level 1 (0 points)

                  No, no "luck" from the other forum.

                  No, I am not here to learn Apple's syslogd.

                   

                  Did you run the above commands on your machine?

                  Did they work?

                    • Re: syslog's unexpected behaviour
                      eskimo Apple Staff Apple Staff (11,625 points)

                      Did you run the above commands on your machine?

                      No.  I’m sorry but my remit is to provide code-level support for the APIs published via Apple’s various platform SDKs.

                      If you get completely stuck you can escalate this via AppleCare, who do provide command line support at their higher tier support levels.

                      Share and Enjoy

                      Quinn “The Eskimo!”
                      Apple Developer Relations, Developer Technical Support, Core OS/Hardware
                      let myEmail = "eskimo" + "1" + "@apple.com"