tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joan <>
Subject Configuring log format for console output (catalina.out)
Date Tue, 21 May 2019 13:11:36 GMT
Hi all,

I am trying to forward the logs generated on a server to a centralized log
collector (using rsyslog), one of the features I would like to use the
ability to group messages by using their timestamp as the start of the
By reading the documentation at, I can't see
the proper way to  get a common format (preferably with timestamp), or ar
tleast save the outputs into three different types in different files?

Some of the logs are displayed like this (severity in brackets but no

> [WARN] Web application uses
> org.apache.axis2.transport.http.AxisAdminServlet; please update web.xml to
> use org.apache.axis2.webapp.AxisAdminServlet instead
> [INFO] Clustering has been disabled
> [INFO] Deploying module: script-1.6.2 -
> file:/var/lib/tomcat8/webapps/WS_Revisiones/WEB-INF/modules/scripting-1.6.2.mar
Stack traces are displayed like this (no severity and no timestamp)

> MultiException stack 1 of 2
> java.lang.NoClassDefFoundError: javax/activation/DataSource
>         at java.base/java.lang.Class.getDeclaredConstructors0(Native
> Method)
>         at
> java.base/java.lang.Class.privateGetDeclaredConstructors(
>         at
> java.base/java.lang.Class.getDeclaredConstructors(
>         at org.jvnet.hk2.internal.Utilities$
>         at org.jvnet.hk2.internal.Utilities$
>         at java.base/
> Method)
Also some other are like this (timestamp with ms + severity + context in

> 21-May-2019 13:03:22.474 INFO [localhost-startStop-1]
> org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned
> for TLDs yet contained no TLDs. Enable debug logging for this logger for a
> complete list of JARs that were scanned but no TLDs were found in them.
> Skipping unneeded JARs during scanning can improve startup time and JSP
> compilation time.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message