• 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: CFWriteStreamCallback stops being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >CFWriteStreamCallback stops being called (From: Liwei <email@hidden>)
 >Re: CFWriteStreamCallback stops being called (From: "Marcelo Alves" <email@hidden>)
 >Re: CFWriteStreamCallback stops being called (From: Liwei <email@hidden>)
 >Re: CFWriteStreamCallback stops being called (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: CFWriteStreamCallback stops being called
  • Next by Date: Re: CFWriteStreamCallback stops being called
  • Previous by thread: Re: CFWriteStreamCallback stops being called
  • Next by thread: Re: CFWriteStreamCallback stops being called
  • Index(es):
    • Date
    • Thread