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
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