|
From: Dejan K. <dej...@ya...> - 2003-04-05 07:56:19
|
Currently commons-logging uses log4j as underlying implementation. But you can easily switch to another logging implementation without code changes. If you remove log4j from classpath then System.out will be used. If you use jdk1.4 and have no log4j.jar in classpath then JDK1.4 logging will be used. This is default behaviour but could be changed using commons-logging.properties file.... Dejan --- ek...@ba... wrote: > Does this mean that all of the "log4j.properties" > files and all the files > that contain "log4j" properties within them are no > longer being used? > > > > > Sent by: > bab...@li... > To: bab...@li... > cc: > Subject: Re: [Babeldoc-devel] Overview of > logging > > > I think we have removed all log4j dependences from > code. Also commons-logging is used only in > LogService > now. Since commons-logging is just a wrapper for > other > logging frameworks you can use log4j, logkit, jdk > 1.4 > logging or even some proprietery framework if you > write wrapper class for it. > It seems to me that using LogService is redundant > since it is just another wrapper but changing all > calls to use commons-logging would be very hard to > do > (I tried once to do this in scanners but recently I > have returned LogService calls). > By the way, I think log configuration should be in > lib > folder not in jar file as it is now. That way > changing > debug levels (from info to debug) would be much > easer. > > > Dejan > > --- ek...@ba... wrote: > > Can I get the 25 cent / highly abridged version of > > how we do logging? > > > > I've found a few different logging classes in the > > system (log4j, > > com.babeldoc.core.LogService, Commons Logging?) > ... > > we have a customized > > logging facility (shocking, right?) that I will > need > > to feed whenever we > > encounter errors as well as to record performance > > metrics, usage, etc ... > > standard Java API. Any suggestions? > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, > and more > http://tax.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of > bandwidth! > No other company gives more support or power for > your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Babeldoc-devel mailing list > Bab...@li... > https://lists.sourceforge.net/lists/listinfo/babeldoc-devel > > __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com |