... ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ # 增加下面这一行, 其他不用改 .level = FINE # 增加上面这一行, 其他不用改 1catalina.org.apache.juli.AsyncFileHandler.level = FINE 1catalina.org.apache.juli.AsyncFileHandler.directory = ${catalina.base}/logs ...
这样子启动tomcat, 会打印超多超多的日志, 然后我再次请求, 看到了这一条
1 2 3 4 5 6 7 8 9 10 11 12
..... org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.read Socket: [org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper@7de71b73:org.apache.tomcat.util.net.NioChannel@657aef19:java.nio.channels.SocketChannel[connected local=/127.0.0.1:8080 remote=/127.0.0.1:47234]], Read direct from socket: [743] 10-Feb-2020 20:32:26.697 FINE [http-nio-8080-exec-2] org.apache.coyote.http11.Http11InputBuffer.parseRequestLine Received [GET # 这一行 http://127.0.0.1:8080/apps/files/folder1/folder2/01-[1]-file.file HTTP/1.0 # 这一行 Host: host X-Real-IP: xxx.xxx.xxx.xxx X-Forwarded-Proto: https X-Forwarded-For: xxx.xxx.xxx.xxx Connection: close ....