Tomcat localhost access log does not contain failed requests
If you want to log the connection details, you need to increase to log levels of loggers org.apache.coyote
and org.apache.tomcat.util.net
, by putting:
org.apache.tomcat.util.net.level = FINE
org.apache.coyote.level = FINE
in $CATALINA_BASE/conf/logging.properties
and increasing the log level of some handler, e.g.:
java.util.logging.ConsoleHandler.level = FINE
whose messages eventually end up in catalina.out
.
This requires a server restart. You should be able to do the same thing through JMX (e.g. jconsole), without a restart.