KB Article #176485
Creating log4j.xml file in the <WEB_SERVER_HOME>/webapps/SentinelWebDashboard/WEB-INF/classes
Problem
Following the steps described in 'Logs and troubleshooting' section of Sentinel 4.0.1 SP3 Configuration Guide (Configuring Sentinel > Set up Sentinel > Web Dashboard > Web Dashboard advanced setup > Logs and troubleshooting) to set up a custom log file results in warning messages at ApacheTomcat console.Resolution
Add class="org.apache.log4j.RollingFileAppender" to appender and class="org.apache.log4j.PatternLayout" to layout as shown below:---------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="<WEB_SERVER_HOME>/logs/SentinelWebDashboard.log"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p \[%t\] %C{2} (%F:%L) - %m%n"/>
</layout>
</appender>
<root>
<priority value="DEBUG"/>
<appender-ref ref="FILE"/>
</root>
</log4j:configuration>
---------------