• 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: Logging Mechanisms in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Logging Mechanisms in Cocoa


  • Subject: Re: Logging Mechanisms in Cocoa
  • From: Timothy Reaves <email@hidden>
  • Date: Sat, 9 Feb 2008 23:23:54 -0500


On Feb 8, 2008, at 9:13 AM, Clint Shryock wrote:

Peter Hosey has blogged a lot recently about asl (Apple System Logger)

http://boredzo.org/blog/archives/2008-01-20/why-asl

there are about 9 blog posts covering this topic starting jan 20th of this year


asl isn't any better than NSLog, even though that blog post claims it is. In the Cocoa/ObjC world, this isn't overly surprising (that someone would think asl is really any different that syslog or NSLog). Logging has meant more than just writing something to the system log file for a good long while, in most of the software development world. And compile time manipulation of logon/logoff isn't adequate either. Anyone who has ever used any of the Java logging frameworks has know - and used - this for a decade.


If all you want is to be able to write to the system log file, with the plethora of other junk, then by all means uses asl or NSLog. If you need modern logging, use log4cocoa. It's not complete, and work specifically in the area of threading is needed, but it's being used in a good many enterprise production applications today. It supportz the ability to have different classes logging at different levels, logging to application specific files or the system log file, the ability to use rolling file appenders, the ability to customize to a great deal the format of the log message, and this can all be done at compile or run time.
_______________________________________________


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


  • Follow-Ups:
    • Re: Logging Mechanisms in Cocoa
      • From: Jens Alfke <email@hidden>
References: 
 >Logging Mechanisms in Cocoa (From: JanakiRam <email@hidden>)
 >Re: Logging Mechanisms in Cocoa (From: Nir Soffer <email@hidden>)
 >Re: Logging Mechanisms in Cocoa (From: "Clint Shryock" <email@hidden>)

  • Prev by Date: Memory management with arrays
  • Next by Date: NSTableView Data Binding Problem
  • Previous by thread: Re: Logging Mechanisms in Cocoa
  • Next by thread: Re: Logging Mechanisms in Cocoa
  • Index(es):
    • Date
    • Thread