About error statuslogger no log4j2 configuration file found

Error statuslogger no log4j2 configuration file found. Using default configuration: logging only errors to the console

Create a new resources folder in the project and add the log4j2. XML file as follows

<?xml version="1.0" encoding="UTF-8"?>
        <Console name="STDOUT" target="SYSTEM_OUT">
            <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
        <RollingFile name="RollingFile" fileName="logs/strutslog1.log"
                <Pattern>%d{MM-dd-yyyy} %p %c{1.} [%t] -%M-%L- %m%n</Pattern>
                <TimeBasedTriggeringPolicy />
                <SizeBasedTriggeringPolicy size="1 KB"/>
            <DefaultRolloverStrategy fileIndex="max" max="2"/>
        <Logger name="com.opensymphony.xwork2" level="WAN"/>
        <Logger name="org.apache.struts2" level="WAN"/>
        <Root level="warn">
            <AppenderRef ref="STDOUT"/>


Select user entries in the classpath of the project corresponding to run – run configurations, click Advanced, and select add folder to add the Resources folder.

Read More: