• 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
NSLog() and stderr
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLog() and stderr


  • Subject: NSLog() and stderr
  • From: Damien Sorresso <email@hidden>
  • Date: Fri, 30 Jun 2006 20:09:12 -0500

I'm trying to redirect NSLog()'s output to a file. Since it writes to stderr, I should be able to do this with

stderr->_write = my_stderr_write ,

where `my_stderr_write' is a pointer to one of my functions. This works just fine if I use fprintf() to write to stderr, but NSLog() stubbornly refuses to call my function. What exactly is NSLog() doing here that is so special?
--


Damien Sorresso

Mac OS X Developer
Computer Infrastructure Support Services
Illinois State University
E-mail: email@hidden


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSLog() and stderr
      • From: Chris Suter <email@hidden>
  • Prev by Date: catching modifier keys in a keydown event
  • Next by Date: Re: catching modifier keys in a keydown event
  • Previous by thread: Re: catching modifier keys in a keydown event
  • Next by thread: Re: NSLog() and stderr
  • Index(es):
    • Date
    • Thread