[Adium-devl] "Debug logger" plugin

Evan Schoenberg evan at adiumx.com
Fri Feb 9 17:00:17 UTC 2007


http://trac.adiumx.com/wiki/AdiumMeetings/2007-02-08 :
Mac-arena suggested a plug-in to enable the debug logger, which would  
always be present but simply turned off in release builds (as opposed  
to not there). And it can have a nag screen, so the user doesn't  
forget about it and so it doesn't get misused for evil purposes.

At present, debug logging is perfectly free in release builds, no  
matter how expensive the process of building the debug log.  For  
example:
AILog(@"The results at this point would be %@",[self  
lengthyResultsCalculation]);

causes a performance hit in deployment-debug but is replaced by
/* */
in deployment - free!

To make a plugin as described possible, I believe a runtime check of  
each passed debug string would be necessary.

I would come down on the side of having a debug build for each  
release available -- preferably created automatically by the release  
makefile -- because 99% of users will never want debug logging, and  
that way we don't cause a slowdown for that vast majority.

-Evan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070209/d557b729/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070209/d557b729/attachment.sig>


More information about the devel mailing list