Created
October 12, 2023 12:35
-
-
Save ckzgraphics/e1ec8557b39eb3886a43259b8a912f0a to your computer and use it in GitHub Desktop.
Template - API Test - Log4j2 XML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN"> | |
<Properties> | |
<Property name="basePath">./logs</Property> | |
</Properties> | |
<Appenders> | |
<Console name="Console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | |
</Console> | |
<RollingFile name="File" fileName="${basePath}/automation.log" filePattern="${basePath}/automation-%d{yyyy-MM-dd}.log"> | |
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> | |
<SizeBasedTriggeringPolicy size="50000" /> | |
</RollingFile> | |
</Appenders> | |
<Loggers> | |
<Root level="debug"><!-- Here you can use multiple log levels All < Trace < Debug < Info < Warn < Error < Fatal < Off --> | |
<AppenderRef ref="File"/> <!-- <AppenderRef ref="Console"/> --> | |
</Root> | |
</Loggers> | |
</Configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment