Previous Topic: Customize the Configuration FileNext Topic: Disable the In-Memory Appender


Update the Threshold Parameter in Default Console Appender

The threshold parameter must be updated to the required log level in order to update the log levels of the default console appender.

Follow these steps:

  1. Open the log4j.xml file from Installed_Loc/view/conf/ and modify the threshold parameter of the default console appender. The following code sample shows the in-memory appender parameters:
    <appender name="view" class="org.apache.log4j.RollingFileAppender">
        <param name="File" value="${usm.home}/logs/view.log" />
        <param name="MaxFileSize" value="20MB" />
        <param name="MaxBackupIndex" value="100" />
        <param name="Threshold" value="INFO" />
        <layout class="org.apache.log4j.PatternLayout">
        <param name="ConversionPattern" value="%d{yyyy/MM/dd HH.mm.ss.SSS} %-5p [%t] [%c{1}] %m%n" />
        </layout>
      </appender>
    
  2. You may update the threshold value to INFO, where INFO is the required log level.

    Refer to Set the log level of the service document in the Implementation Guide for more information on the threshold values.

  3. Save the file.

    You have updated the threshold parameter in the default console appender.