Created
August 21, 2019 14:49
-
-
Save pedes/f2cc1f0018e920f06bafd0a25f412328 to your computer and use it in GitHub Desktop.
Synchronous Logging Configuration
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"> | |
<!-- Define custom levels before using them for filtering below. --> | |
<CustomLevels> | |
<CustomLevel name="DIAG" intLevel="350" /> | |
<CustomLevel name="NOTICE" intLevel="450" /> | |
<CustomLevel name="VERBOSE" intLevel="550" /> | |
</CustomLevels> | |
<Appenders> | |
<Console name="Console" target="SYSTEM_OUT"> | |
<PatternLayout pattern="%d %-7level %logger{36} - %msg%n"/> | |
</Console> | |
<File name="MyFile" fileName="logs/app.log"> | |
<PatternLayout pattern="%d %-7level %logger{36} - %msg%n"/> | |
</File> | |
</Appenders> | |
<Loggers> | |
<Root level="trace"> | |
<!-- Only events at DIAG level or more specific are sent to the console. --> | |
<AppenderRef ref="Console" level="diag" /> | |
<AppenderRef ref="MyFile" level="trace" /> | |
</Root> | |
</Loggers> | |
</Configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment