Log4j2 configuration is not creating log files in the designated folder
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN">
<Appenders>
<File name="File" fileName="logs/sabre-${date:yyyy-MM-dd}-${date:HH-mm-ss}.log">
<PatternLayout pattern="%d{MM.dd.yyyy HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</File>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="1000 MB"/>
</Policies>
</Appenders>
<Loggers>
<Logger name="x.y" level="ALL" additivity="true">
<AppenderRef ref="File"/>
</Logger>
</Loggers>
</Configuration>
Below is the screenshot of my folder structure
Link to my folder structure
New contributor
Abhishek Das is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.