Logs in Tomcat 4.1.27

A

Abel Suarez

Hello everybody!!

I have installed a web application in Tomcat 4.1.27, and defined the
following context in server.xml, with a logger:

<Context path="/enec" docBase="..\Rel3.0_BL1\enec" debug="0"
reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="enec_log." suffix=".txt" timestamp="true"/>
</Context>

But when I opened, for example, the log file
'enec_log.2004-01-27.txt' I cannot find the web clients data, such as
their IP address, the time request, ..., but I see things like this:

2004-01-28 10:45:58 StandardWrapperValve[default]: Servlet.service()
for servlet default threw exception
java.net.SocketException: Software caused connection abort: socket
write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
at ....

How can I configure the log file to archive connections with a
format like this? 213.187.77.163 - - [23/Oct/2003:05:01:47 -0500] "GET
/servlet/StockServlet HTTP/1.1" 404 636
 

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

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top