Java Servlets TOMCAT

R

ritchie

Hi all,

I am tring to setup log files for my Java servlets.
I have seen the use of the log() method.
Is it possible to make the log() method send the message to a specific
file?
If not, is there another way around this?

Kind Regards,
Ritchie
 
J

Juha Laiho

ritchie said:
I am tring to setup log files for my Java servlets.
I have seen the use of the log() method.
Is it possible to make the log() method send the message to a specific
file?

See the Tomcat configuration documents for ways to set up loggers in
Tomcat. If this is not flexible enough, take a look at the Log4j library.
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top