Howdy,
It's pretty much all covered in the log4j documentation.  It's covered
in depth in the full log4j book which you can purchase.

Don't confuse the <Logger> tags in tomcat's server.xml with log4j
Loggers.  They're not the same.

Here's a way to get started:
- Go through the log4j introduction on the log4j site
- Create a test webapp directory under $CATALINA_HOME/webapps, complete
with a web.xml with mapping for one test servlet.
- Copy one of the simple example properties from the log4j introduction
into your $CATALINA_HOME/webapps/test/WEB-INF/classes/log4j.properties.
- Write your test servlet, something very simple, and have it do
Logger.getLogger(getClass()).info("Hello world!");

That's it.  Once you get that far, if you have more questions, feel free
to ask.  But just doing the above will give you a great feel for things.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Joe Reger, Jr. [mailto:[EMAIL PROTECTED]
>Sent: Thursday, June 26, 2003 1:44 PM
>To: [EMAIL PROTECTED]
>Subject: Log4j and Tomcat howto?
>
>
>Does anybody know of a Log4j and Tomcat HOWTO?  I've seen lots of info
out
>there on Log4j and command line Java but little on Log4j in a Tomcat
>container.  I'd like to see sample <Logger... config tags for
context.xml,
>sample log4j.properties files and where to put the log4j.jar file so
that
>it's accessed correctly.  It would also be great to see a sample
>JDBCLogAppender in action.  Thanks,  Joe
>
>
>---------------------------------------------------------------------
>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]

Reply via email to