Skip to content

Commit

Permalink
fix: re-add "Console" appender to fix console tab in gui
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed May 31, 2024
1 parent b6db8ab commit 45d1437
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Allay-Server/src/main/resources/log4j2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
<Configuration status="WARN">
<Appenders>
<TerminalConsole name="TerminalConsole">
<PatternLayout
pattern="[%cyan{%d{HH:mm:ss} %level}] [%yellow{%t}] [%blue{%c{0}}] %minecraftFormatting{%msg}%n"/>
<PatternLayout pattern="[%cyan{%d{HH:mm:ss} %level}] [%yellow{%t}] [%blue{%c{0}}] %minecraftFormatting{%msg}%n"/>
</TerminalConsole>
<Console name="Console" target="SYSTEM_OUT" follow="true">
<PatternLayout pattern="[%cyan{%d{HH:mm:ss} %level}] [%yellow{%t}] [%blue{%c{0}}] %minecraftFormatting{%msg}%n"/>
</Console>
<RollingRandomAccessFile name="File" fileName="logs/server.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout
pattern="[%d{HH:mm:ss} %level] [%t] [%c{0}] %replace{%msg}{§([0-9]|[a|b|c|d|e|f|k|l|o|r])}{}%n"/>
<PatternLayout pattern="[%d{HH:mm:ss} %level] [%t] [%c{0}] %replace{%msg}{§([0-9]|[a|b|c|d|e|f|k|l|o|r])}{}%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<OnStartupTriggeringPolicy/>
Expand Down

0 comments on commit 45d1437

Please sign in to comment.