I have a spring boot application and i generated the spring war. I deployed that in wildfly 16, but i found that logs are generating in the INFO mode only. The same war when i deploys in the Tomcat produces the log in DEBUG mode.
I am using log4j2 for the logging
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="DEBUG">
<Properties>
<Property name="basePath">F:/LOGS/</Property>
</Properties>
<CustomLevels>
<CustomLevel name="CDR" intLevel="1" />
</CustomLevels>
<Appenders>
<RollingFile name="NORMAL_LOG_FILE" fileName="${basePath}/appUMS.log"
filePattern="${basePath}/appUMS.log.%d{yyyy-MM-dd-HH}" >
<PatternLayout>
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] %c{1} %L- %msg%n
</pattern>
</PatternLayout>
<Policies>
<TimeBasedTriggeringPolicy interval="1"
modulate="true" />
</Policies>
<!-- <ThresholdFilter level="ERROR" onMatch="DENY" onMismatch="NEUTRAL"/> -->
</RollingFile>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="%d{yyyy-MM-dd HH:mm:ss.SSS} [%-5level] %c{1} %L - %msg%n" />
</Console>
</Appenders>
<Loggers>
<Logger name="com.sixdee" level="debug" additivity="false">
<appender-ref ref="NORMAL_LOG_FILE" level="DEBUG" />
<AppenderRef ref="console" level="debug" />
<AppenderRef ref="ERR_LOG_FILE" level="error" />
</Logger>
<Root level="info" additivity="false">
<appender-ref ref="console" />
<AppenderRef ref="NORMAL_LOG_FILE" />
<AppenderRef ref="ERR_LOG_FILE"/>
</Root>
</Loggers>
</Configuration>
The same log4j2 is used in both tomcat and wildfly logs. Is there is any other configuration file available in Wildfly/JBoss for enabling DEBUG level??