I was suffering of anoying logs of Tomcat in Eclipse:
Jul 05, 2019 9:38:27 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:navigo3' did not find a matching property.
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version: Apache Tomcat/8.0.52
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Apr 28 2018 16:24:29 UTC
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server number: 8.0.52.0
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Linux
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 4.15.0-51-generic
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: amd64
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Jul 05, 2019 9:38:27 PM org.apache.catalina.startup.VersionLoggerListener log
There is like 100 lines shown in red color. When apps are initialized their logs are mixed with Tomcat’s. It is just mess.
To disable this behavior and show only application logs do following:
Copy $TOMCAT/conf/logging.properties into $WORKSPACE/.metadata/.plugins/ org.eclipse.wst.server.core/tmp0/conf (may be your folder is tmp1 or higher)
In target file replace java.util.logging.ConsoleHandler.level = INFO by java.util.logging.ConsoleHandler.level = WARN
In run configuration in Eclipse (Run->Run configurations) paste into block VM Arguments on tab Arguments following code -Djava.util.logging.config.file= $CATALINA_BASE/conf/logging.properties
Or alternatively, do change config in Tomcat’s folder and then link it with absolute path in step 3.
And voila! Only app log lines are shown.