I have to get all the chromium and firefox info logs out of /var/log/system.log and into a nice quiet /var/log/{chromium,firefox}.log.
However I can neither recall or find how to set that in syslog.conf. How would I go about doing that?
EDIT: I have been looking at the asl.conf file for the asl logging daemon. This seems to have something to do with what I want, although, going from syslog to a binary log format is directly against sense.
EDIT: To be very clear one can use syslog to dynamically slice the logs. Apple is transitioning from syslog to the apple system log. So the grep approach only deals with the deprecated /var/log syslogd files.
Switching to syslog-ng and logging to sqlite would seem to be easier, but who knows? I'm sure the proprietary format is the way to go.
Note that
syslog(1)
is the command line tool for the ASL database.
syslog(3)
is the C api to the syslogd daemon. The ASL replacement for the above is
asl(3)
Now,
syslogd(8)
has 2 modules, one writing to the files defined in
syslog.conf(5)
and one writing to the apple system log, as defined in
asl.conf(5)
ASL seems to be the future. Syslogd is configured by both syslog.conf and asl.conf.