diable logging in tomcat,

V

vinodh

Hi,

I am looking to ship my servlet application in a CD along with
Tomcat_5.0.28 container. But the problem is i want to diable tomcat's
logging feature because data cannot be written to a CD in the of a file
IO (As tomcat does by logging startup/error messages to the catalina
log file). How to diable this logging process so that i can have ship
my self-contained webapp without any problem. Need ur suggestions on
this issue
thanks
 
B

Bob Kranson

Hmm. Is the logger based with log4j implementation? Usually you can
deconstruct the jar file and add/update a log4j.properties file to set the
logger location and priorities.
 
G

gimme_this_gimme_that

If you can find the spot where the logger configures the output file
set it to /dev/null .
Note that this might be configured in a class and not necessarily in a
log4j.xml file.
 
C

Chris Smith

I am looking to ship my servlet application in a CD along with
Tomcat_5.0.28 container. But the problem is i want to diable tomcat's
logging feature because data cannot be written to a CD in the of a file
IO (As tomcat does by logging startup/error messages to the catalina
log file). How to diable this logging process so that i can have ship
my self-contained webapp without any problem. Need ur suggestions on
this issue

Basically, just remove all the appropriate elements from server.xml.
Every bit of logging that Tomcat does is controlled by an XML element in
the server.xml file.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
C

Chris Smith

If you can find the spot where the logger configures the output file
set it to /dev/null .
Note that this might be configured in a class and not necessarily in a
log4j.xml file.

You don't seem to realize that /dev/null only exists on UNIX-like
systems. Far better to just turn logging off than redirect it to a
platform-specific file name.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,085
Members
48,773
Latest member
Kaybee

Latest Threads

Top