• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: BAS use of asl_log()
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >BAS use of asl_log() (From: Todd Heberlein <email@hidden>)

  • Prev by Date: Create folder in protected directory
  • Next by Date: Re: Setting a layer delegate affects drawRect being called
  • Previous by thread: BAS use of asl_log()
  • Next by thread: Simulating a click in NSStepper
  • Index(es):
    • Date
    • Thread