Skip to content

Commit

Permalink
Add custom logback configuration for test
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Dec 24, 2024
1 parent 655dd0f commit 3d7c83f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/test/resources/logback-test.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

<configuration>
<property
name="pattern"
value="%gray(%d{HH:mm:ss.SSS}) %highlight(%-5p) %magenta([%-15.15t]) %cyan(%-50c{50}) | %m%n"/>

<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<Pattern>${pattern}</Pattern>
</encoder>
</appender>

<root level="warn">
<appender-ref ref="console" />
</root>

<logger name="com.github.jaguililla.appointments" level="trace" />
</configuration>

0 comments on commit 3d7c83f

Please sign in to comment.