How to suppress INFO level logging in webserver.log
search cancel

How to suppress INFO level logging in webserver.log

book

Article ID: 407224

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

By default, Applications Manager's webserver log file prints out INFO, WARNING, and ERROR level logging. 

For example, the below is found in the webserver.log after a successful start up:

Jul 01, 2025 4:33:03 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-5050"]
Jul 01, 2025 4:33:03 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Tomcat]
Jul 01, 2025 4:33:03 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/10.1.33]
Jul 01, 2025 4:33:04 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Jul 01, 2025 4:33:04 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-5050"]

Editing logging parameters in the application.properties file does not work.

Is there a way to suppress INFO level logging and only log WARNING or ERROR level logging?

Environment

Applications Manager version 9.6 and 9.6.1

Resolution

A fix will be included in Applications Manager version 9.6.2 and 9.7, which will allow changes to logging parameters from within the application.properties file.

Workaround 1:

This is an easier option but is a Java level change.

  1. Edit the JAVA_HOME/conf/logging.properties file for the JAVA_HOME folder that is used by Applications Manager
  2. Change java.util.logging.ConsoleHandler.level from INFO to SEVERE as seen below:

    java.util.logging.ConsoleHandler.level = SEVERE

  3. Restart Applications Manager and webserver. If there are no issues starting the webserver, the webserver.log will be empty.

Workaround 2:

This is an Applications Manager level change.

  1. Create file log.properties with following content and copy to $AW_HOME directory:

    # Set the default logging level for everything
    .level=WARNING
    # Use a console handler
    handlers=java.util.logging.ConsoleHandler
    # Console logging level and format
    java.util.logging.ConsoleHandler.level=WARNING
    java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter

  2. Edit the AW_HOME/data/inst.pl
  3. find the section start_webserver, add "-Djava.util.logging.config.file=log.properties" to the below command, and save/close.

    From:
    $command = "$spawn -p $pidfile \"$java -DAW_HOME=$AW_HOME -DSO_OPERATOR=$OPER -jar $apijar --server.port=$port --spring.config.location=$config\" 1>$logfile 2>&1";
    To:
    $command = "$spawn -p $pidfile \"$java -DAW_HOME=$AW_HOME -DSO_OPERATOR=$OPER -Djava.util.logging.config.file=log.properties -jar $apijar --server.port=$port --spring.config.location=$config\" 1>$logfile 2>&1";

  4. Restart Applications Manager and webserver. If there are no issues starting the webserver, the webserver.log will be empty.