You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Propes, Barry L " <ba...@citi.com> on 2007/05/30 22:55:09 UTC

log4j implementation question

Hello,
 
I'm using Tomcat 4.1.31 on my servers, and was looking to implement log4j for additional logging capabilities and info.
 
I've been reading this, but maybe it's a bit outdated or I'm not following it correctly.
 
http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=2
 
 
I downloaded logging-log4j-1.2.14.zip and put the jar file in my WEB-INF dir. of my main apps. Would this be correct?
 
I was unsure how to deploy the log4demo.war file, as I couldn't find it, and was mainly just wondering how I could really cut to the chase and get this going.
 
would I just import various statements into my servlets and then run a static logger method within them?
 
Using TC 4.1.31 on Win2k in each of my environments - dev and prod.
 
Thanks!
 
If anyone has any other tips on implementing, I'm wide open to suggestion with it.

Re: log4j implementation question

Posted by Jacob Kjome <ho...@visi.com>.
At 03:55 PM 5/30/2007, you wrote:
 >Hello,
 >
 >I'm using Tomcat 4.1.31 on my servers, and was looking to implement
 >log4j for additional logging capabilities and info.
 >
 >I've been reading this, but maybe it's a bit outdated or I'm not
 >following it correctly.
 >
 >http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=2
 >
 >
 >I downloaded logging-log4j-1.2.14.zip and put the jar file in my
 >WEB-INF dir. of my main apps. Would this be correct?

You mean WEB-INF/lib, right?  If so, yes.

and put log4j.xml or log4j.properties in WEB-INF/classes

 >
 >I was unsure how to deploy the log4demo.war file, as I couldn't find
 >it, and was mainly just wondering how I could really cut to the chase
 >and get this going.
 >
 >would I just import various statements into my servlets and then run a
 >static logger method within them?
 >
 >Using TC 4.1.31 on Win2k in each of my environments - dev and prod.
 >
 >Thanks!
 >
 >If anyone has any other tips on implementing, I'm wide open to
 >suggestion with it.

You really need to read the basic docs on the Log4j web site or just 
use a search engine.  There's tons of information out there on how to 
get started with Log4j.  This list is for specific questions, not a 
tutorial guide.  Once you get more up to speed, don't hesitate to ask 
if you have specific questions.


Jake


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org