Re: Apple system log facility: questions
Re: Apple system log facility: questions
- Subject: Re: Apple system log facility: questions
- From: Stephane <email@hidden>
- Date: Thu, 16 Nov 2006 17:07:02 +0100
On Nov 16, 2006, at 4:40 PM, Paul Nelson wrote:
I use asl quite a bit with Tiger.
OK, so it's working. Time to code.
I think it is superior to syslog because of the ability to put
detail into asl.log, and summarize in system.log.
What I personally find attractive (from the description) is UTF-8
support and that it's apparently way easier to use a custom facility.
I never had any trouble figuring out the api. Not sure why this is
even an issue.
Well, for instance, my first look at the API shows that you need to
use asl_new to create a new Message. This leads me to wonder if this
is slow because it's apparently allocating some memory. But is it
really allocating memory because the sample codes in the man page are
not using the asl_free call (and the "may be freed" sentence is a bit
strange). Then I wondered if you could avoid allocating a message for
each record you want to log. It's answered in the man page but a
@discussion on asl_new or a detailed topic (such as the ones
available for Cocoa or Carbon) could have been easier to find and
provided a enlightening answer.
So for my part, I could use a detailed documentation (to avoid
looking at the source code of asl in the near future).
_______________________________________________
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