Re: Logging Mechanisms in Cocoa
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