Skip to content

Commit

Permalink
Add logback logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Protonull committed Apr 30, 2024
1 parent 542c9ce commit f0d3451
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ repositories {
dependencies {
implementation("net.minestom:minestom:dev")
implementation("dev.hollowcube:minestom-ce-extensions:1.2.0")
implementation("ch.qos.logback:logback-classic:1.5.6")
}

java {
Expand Down
10 changes: 10 additions & 0 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>[%d{YYYY-MM-dd HH:mm:ss}] [%level] [%thread] [%logger{36}]: %msg%n</pattern>
</encoder>
</appender>
<root level="INFO">
<appender-ref ref="STDOUT"/>
</root>
</configuration>

0 comments on commit f0d3451

Please sign in to comment.