Thanks for your help :) 2005/12/23, Mark Womack <[EMAIL PROTECTED]>: > commons-logging is not part of the Logging Services or log4j project, it is > part of the Jakarta project. Plus commons-logging can be used to wrap > around other logging frameworks, like the JDK logging api (which makes it > more usable in my opinion). If you think your project might need to swap > out the logging framework at some point, then commons-logging might be for > you. You can still get the power of log4j underneath it in the > configuration of appenders, etc. > > There can be some issues with commons-logging though in the way it looks for > the underlying framework, etc. The links that Curt sent in his email are > pretty clear about it. > > hth, > -Mark > > ----- Original Message ----- > From: "DeMZed" <[EMAIL PROTECTED]> > To: "Log4J Users List" <[email protected]> > Sent: Thursday, December 22, 2005 11:06 AM > Subject: Re: Difference between LogFactory.getLog & Logger.getLogger ? > > > Thanks :) > > If the use of the first in one class and the second in another class > would not produce any diffrence, why isn't there only one use ? > > 2005/12/22, Mark Womack <[EMAIL PROTECTED]>: > > It depends on which package you want to use in your code. If you only > > want to reference loggers via commons-logging, use the commons logging > > one. If you want to reference loggers via log4j, use the log4j one. > > > > Even though commons-logging can use log4j under the covers, it does > > not directly expose the log4j logger class and its methods (though > > they are very, very similar). > > > > hth, > > -Mark > > > > On 12/22/05, DeMZed <[EMAIL PROTECTED]> wrote: > > > Hi ! > > > > > > One is from org.apache.commons.logging and the other from > > > org.apache.log4j. > > > > > > It seems that those two clases does the same work, so, which one choose > > > ? > > > > > > Thanks :-) > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
