I agree - commons-logging is much easier to write too. Then you can just put a log4j.properties (or .xml) file + log4.jar in your classpath and commons-logging with automatically recognize it.
The question is - how do we do it? I usually do it on a class level and make it static when needed. Example: private Log log = LogFactory.getLog(ParentDAOHibernate.class); Matt > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Joseph Ottinger > Sent: Tuesday, March 04, 2003 6:10 PM > To: Luiz-Otavio Zorzella > Cc: [EMAIL PROTECTED] > Subject: Re: [displaytag-devel] Log4j > > > I wouldn't care to see Log4J dependency, primarily because > Log4J is so much larger than displaytags. If you really > really really want to tie displaytags to a logging framework > of some kind (which I'd advise against), go for > commons-logging, as it's far smaller and is a front for JDK > 1.4's logging, LN2, and log4j as well. > > On Tue, 4 Mar 2003, Luiz-Otavio Zorzella wrote: > > > Hi, > > > > the display tag library is entirelly lacking logging messages -- I > > wish to know if anyone objects to my adding a log4j dependency to > > it... > > > > Zorzella > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Etnus, makers of TotalView, The > > debugger for complex code. Debugging C/C++ programs can leave you > > feeling lost and disoriented. TotalView can help you find your way. > > Available on major UNIX and Linux platforms. Try it free. > > www.etnus.com _______________________________________________ > > displaytag-devel mailing list [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/displaytag-devel > > > > --------------------------------------------------------- > Joseph B. Ottinger [EMAIL PROTECTED] > http://enigmastation.com IT Consultant > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of > TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you > feeling lost and > disoriented. TotalView can help you find your way. Available > on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > displaytag-devel mailing list [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/displaytag-devel > ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel
