You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christoph Kukulies <ku...@kukulies.org.INVALID> on 2023/11/18 13:48:39 UTC

Logging format (port %p)

I'm running tomcat9 as a backend server and I have configured different ports. For debugging purposes I would like to log the port
a request is being sent through.

Where is the logging format "wired" into the config? At the moment I'm seeing this
(in root@mail:/var/lib/tomcat9/logs# tail -f  localhost_access_log.2023-11-18.txt ):

127.0.0.1 - - [18/Nov/2023:14:41:08 +0100] "GET / HTTP/1.1" 404 5679



--
Christoph


Re: Logging format (port %p)

Posted by Christoph Kukulies <ku...@kukulies.org.INVALID>.
Sorry, a bit searching revealed: /var/lib/tomcat9/server.xml:

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %p %l %u %t &quot;%r&quot; %s %b" />


> Am 18.11.2023 um 14:48 schrieb Christoph Kukulies <ku...@kukulies.org.INVALID>:
> 
> I'm running tomcat9 as a backend server and I have configured different ports. For debugging purposes I would like to log the port
> a request is being sent through.
> 
> Where is the logging format "wired" into the config? At the moment I'm seeing this
> (in root@mail:/var/lib/tomcat9/logs# tail -f  localhost_access_log.2023-11-18.txt ):
> 
> 127.0.0.1 - - [18/Nov/2023:14:41:08 +0100] "GET / HTTP/1.1" 404 5679
> 
> 
> 
> --
> Christoph
>