Created
June 4, 2019 03:22
-
-
Save mballoni/2a5f717a1af36e593ddc8a8b13789196 to your computer and use it in GitHub Desktop.
json with pattern layout
This file contains 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> | |
<Appenders> | |
<Console name="Console" target="SYSTEM_OUT"> | |
<PatternLayout alwaysWriteExceptions="false" pattern="{'time':'%d{ISO8601}','trace':'%X{traceId}','thread':'[%t]','level':'%-5level','logger':'%logger{1.}','java':'$${java:version}','message':'%replace{%msg%maxLen{%rEx{full}}{1600}}{\r?\n}{↵}'}%n"/> | |
</Console> | |
</Appenders> | |
<Loggers> | |
<Root level="info"> | |
<AppenderRef ref="Console"/> | |
</Root> | |
</Loggers> | |
</Configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment