Re: syslogging to a customized .log file without messing with syslog.conf
Re: syslogging to a customized .log file without messing with syslog.conf
- Subject: Re: syslogging to a customized .log file without messing with syslog.conf
- From: "Jordan K. Hubbard" <email@hidden>
- Date: Wed, 1 Feb 2006 11:45:44 -0800
Why do you need to use the deprecated syslog(3) APIs for this?
If you use asl(3), the new logging facility, you can either dispense
with the notion of a customized log file entirely since asl(3) allows
you to tag your messages with arbitrary keys that allow them to be
easily pulled out of the central log data store later, or if you
really want logging to a separate file, you can use asl_add_log_file
() along with the standard asl logging APIs to get what you want.
See asl(3).
- Jordan
On Feb 1, 2006, at 2:56 AM, Stephane Sudre wrote:
syslog allows someone to log to a customize .log file by using a
LOCAL ID and modifying the /etc/syslog.conf file (this is how ipfw
is doing it on Darwin 8).
Would there be a way to achieve this (custom log file) without
having to mess with the syslog.conf file?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden