feat: updated logger format

This commit is contained in:
Andrey Terentev 2024-11-25 23:18:29 +07:00
parent 40e0bbcec6
commit 9cc30c7095
2 changed files with 16 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<!-- Console appender configuration --> <!-- Console appender configuration -->
<Console name="console" target="SYSTEM_OUT"> <Console name="console" target="SYSTEM_OUT">
<PatternLayout <PatternLayout
pattern="%d{dd-MM-yyyy HH:mm:ss} [%-5p] %c:%L | %m%n" /> pattern="%cyan{%d{dd-MM-yyyy HH:mm:ss}} [%style{%highlight{%level}{STYLE=Logback}}] %yellow{%t} | %green{%c{1.}:%L} | %m%n" />
</Console> </Console>
</Appenders> </Appenders>
<Loggers> <Loggers>

View File

@ -0,0 +1,15 @@
<Configuration status="info">
<Appenders>
<!-- Console appender configuration -->
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="%cyan{%d{dd-MM-yyyy HH:mm:ss}} [%style{%highlight{%level}{STYLE=Logback}}] %yellow{%t} | %green{%c{1.}:%L} | %m%n" />
</Console>
</Appenders>
<Loggers>
<!-- Root logger referring to console appender -->
<Root level="info" additivity="false">
<AppenderRef ref="console" />
</Root>
</Loggers>
</Configuration>