Skip to content

Commit

Permalink
Moved to Old Logback XML File
Browse files Browse the repository at this point in the history
  • Loading branch information
beanbeanjuice committed May 7, 2023
1 parent 74caea9 commit 74c0cdb
Showing 1 changed file with 4 additions and 74 deletions.
78 changes: 4 additions & 74 deletions src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -1,84 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<configuration debug="false">

<appender name="INFO_APPENDER"
class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>INFO</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{MM-dd-yyyy HH:mm:ss.SSS Z} %boldCyan(%-34.-34thread) %red(%10.10X{jda.shard}) %boldGreen(%-15.-15logger{0}) %boldBlue(%-6level) %msg%n</pattern>
<pattern>%d{HH:mm:ss.SSS} %boldCyan(%-34.-34thread) %red(%10.10X{jda.shard}) %boldGreen(%-15.-15logger{0}) %highlight(%-6level) %msg%n</pattern>
</encoder>
</appender>

<appender name="WARN_APPENDER"
class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>WARN</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<encoder>
<pattern>%d{MM-dd-yyyy HH:mm:ss.SSS Z} %boldCyan(%-34.-34thread) %red(%10.10X{jda.shard}) %boldGreen(%-15.-15logger{0}) %boldYellow(%-6level) %msg%n</pattern>
</encoder>
</appender>

<appender name="ERROR_APPENDER"
class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>ERROR</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<encoder>
<pattern>%d{MM-dd-yyyy HH:mm:ss.SSS Z} %boldCyan(%-34.-34thread) %red(%10.10X{jda.shard}) %boldGreen(%-15.-15logger{0}) %boldRed(%-6level) %msg%n</pattern>
</encoder>
</appender>

<appender name="DEBUG_APPENDER"
class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>DEBUG</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<encoder>
<pattern>%d{MM-dd-yyyy HH:mm:ss.SSS Z} %boldCyan(%-34.-34thread) %red(%10.10X{jda.shard}) %boldGreen(%-15.-15logger{0}) %boldCyan(%-6level) %msg%n</pattern>
</encoder>
</appender>

<appender name="TRACE_APPENDER"
class="ch.qos.logback.core.ConsoleAppender">
<filter class="ch.qos.logback.classic.filter.LevelFilter">
<level>TRACE</level>
<onMatch>ACCEPT</onMatch>
<onMismatch>DENY</onMismatch>
</filter>
<encoder>
<pattern>%d{MM-dd-yyyy HH:mm:ss.SSS Z} %boldCyan(%-34.-34thread) %red(%10.10X{jda.shard}) %boldGreen(%-15.-15logger{0}) %boldMagenta(%-6level) %msg%n</pattern>
</encoder>
</appender>

<root level="INFO">
<appender-ref ref="INFO_APPENDER" />
</root>

<root level="WARN">
<appender-ref ref="WARN_APPENDER" />
</root>

<root level="ERROR">
<appender-ref ref="ERROR_APPENDER" />
</root>

<root level="DEBUG">
<appender-ref ref="DEBUG_APPENDER" />
</root>

<root level="TRACE">
<appender-ref ref="TRACE_APPENDER" />
<root level="info">
<appender-ref ref="STDOUT" />
</root>

</configuration>

0 comments on commit 74c0cdb

Please sign in to comment.