syslog()

raf macports at raf.org
Mon Jun 12 04:39:43 UTC 2023


Hi, I have a program that needs a syslog-compatible logging system
(i.e. C's openlog(), syslog(), and closelog() functions, or Python's
syslog module need to work).

I have macos-10.14. If I do « logger -p auth.info 'Hi there' »,
I'd expect "Hi there" to appear in /var/log/system.log (or maybe
somewhere else), but it's not showing up anywhere underneath /var/log.

I haven't changed /etc/syslog.conf or /etc/asl.conf.
The asl.conf includes includes:

  # Rules for /var/log/system.log
  > system.log mode=0640 format=bsd rotate=seq compress file_max=5M all_max=50M
  ? [= Sender kernel] file system.log
  ? [<= Level notice] file system.log
  ? [= Facility auth] [<= Level info] file system.log
  ? [= Facility authpriv] [<= Level info] file system.log

So it looks like auth.info (and auth.err) messages should end up
in system.log unless these files are red herrings.

Does anyone known where auth.* logs end up? Or if they don't end up
anywhere, is there a way to make them go somewhere?

Thanks.

cheers,
raf



More information about the macports-users mailing list