Re: BAS use of asl_log()
Re: BAS use of asl_log()
- Subject: Re: BAS use of asl_log()
- From: Jerry Krinock <email@hidden>
- Date: Thu, 16 Apr 2009 15:01:05 -0700
On 2009 Apr 16, at 12:40, Todd Heberlein wrote:
err = asl_log(asl, aslMsg, ASL_LEVEL_ERR, "Request failed: %m");
...
err = asl_log(asl, aslMsg, ASL_LEVEL_ERR, errStr);
Is there a requirement that [a] at compile time the <format> field
be known (as in the first example), or [b] can it also be generated
at run time (as in the second condition)?
Looks like the answer, by example, is (b), Todd. If you have any
doubts, you can get the documentation for asl_log by option-clicking
it in Xcode, or in Xcode's Help menu click "Open man page", then type
in asl_log.
If the documentation is ambiguous, as it sometimes is on these bsd-
level functions, I believe the appropriate place to ask questions
would be email@hidden. They give good help over there.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden