What do you think of this opinion: I am inclined to use the JDK1.4
logger just because it's included in rt.jar, thus fewer jars and shorter
classpath, and all that.

-----Original Message-----
From: Collins, Jim [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 19, 2003 9:44 AM
To: 'Tomcat Users List'
Subject: RE: Best Logging practices

I would not recommend using commons-logging in a web-app. If you want to
separately configure the logging requirements of an application you have
to
deploy it with its own logging properties file (log4j.properties for
log4j).
For commons-logging to pick up your apps logging properties file you
need to
deploy commons-logging.jar in yourapp/WEB-INF/lib. This should not be a
problem however having commons-logging.jar in yourapp/WEB-INF/lib and
common/lib causes Tomcat to crash. I have had this problem and so have a
number of other people. So avoid the heartache of this and log directly
to
log4j or  the JDK1.4 logger.

Regards

Jim.

> -----Original Message-----
> From: Peter Lin [mailto:[EMAIL PROTECTED]]
> Sent: 19 February 2003 15:07
> To: Tomcat Users List
> Subject: RE: Best Logging practices
> 
> 
> 
> the latest version of log4j already supports the new
> logging API.  The implementation for log4j is more
> mature and has been around for a long time. The
> reference implementation for the standard logging API
> is newer and has been tested as much. Log4J also comes
> with rolling appenders, which can roll the log based
> on day, week, month or hours.
> 
> commons logging uses log4J I believe, so it's the best
> choice for logging in my biased opinion. just look at
> the samples included in log4j. they're use friendly.
> 
> peter
> 
> 
> 
> --- "Arachtingi, Mike"
> <[EMAIL PROTECTED]> wrote:
> > Can you give me the lay of the land regarding log4j?
> >  I was under the
> > impression that java.util.logging was the way to go
> > for the future.  It
> > (java.util.logging) appears to be a newer, more
> > refined package.
> > 
> > -----Original Message-----
> > From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
> > Sent: Wednesday, February 19, 2003 8:19 AM
> > To: Tomcat Users List
> > Subject: RE: Best Logging practices
> > 
> > 
> > Howdy,
> > Listen to Jacob -- I wish more people did what he
> > recommended in his
> > post.  Also use log4j. ;)
> > 
> > 
> > Yoav Shapira
> > Millennium ChemInformatics
> > 
> > 
> > >-----Original Message-----
> > >From: Manavendra Gupta [mailto:[EMAIL PROTECTED]]
> > >Sent: Wednesday, February 19, 2003 2:30 PM
> > >To: Tomcat Users List
> > >Subject: Best Logging practices
> > >
> > >Any pointers/thoughts about web application logging
> > practices? You
> > >generally
> > >see almost each individual with different opinion
> > about this (from
> > logging
> > >into the system temporary directory to inside
> > WEB-INF).
> > >
> > >Are there any best practices for this?
> > >
> > >Thanks,
> > >Manav.
> > >
> > >
> >
> >---------------------------------------------------------------------
> > >To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > >For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> > 
> > This e-mail, including any attachments, is a
> > confidential business
> > communication, and may contain information that is
> > confidential,
> > proprietary and/or privileged.  This e-mail is
> > intended only for the
> > individual(s) to whom it is addressed, and may not
> > be saved, copied,
> > printed, disclosed or used by anyone else.  If you
> > are not the(an)
> > intended recipient, please immediately delete this
> > e-mail from your
> > computer system and notify the sender.  Thank you.
> > 
> > 
> >
> ---------------------------------------------------------------------
> > 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]
> > 
> 
> 
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine
this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



---------------------------------------------------------------------
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]

Reply via email to