Re: CFWriteStreamCallback stops being called
Re: CFWriteStreamCallback stops being called
- Subject: Re: CFWriteStreamCallback stops being called
- From: Quinn <email@hidden>
- Date: Wed, 30 Jul 2008 16:36:15 +0100
At 8:24 -0700 30/7/08, Shawn Erickson wrote:
> (A side question, is there something in OSX that I can use to log my
error messages? Something more native to OSX than stderr?)
man asl
Wow, that's a steep learning curve (-:
Your choice of logging depends on your goal. If you're just logging
while debugging, it's perfectly reasonably to fprintf to stderr (or
use NSLog if you're in Objective-C Land (tm)). OTOH, if you want to
leave the logging in the product, with knobs that your users can
twiddle to get more or less logging, ASL is a good choice.
If you decide to go the ASL route, there are a bunch of samples on
our web site that shows how to get started. Search
<http://developer.apple.com/> for "asl_log". Or just check out
SampleD.
<http://developer.apple.com/samplecode/SampleD/index.html>
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden