geforkt von Mirrors/Paper
Fix log messages being split across GUI and terminal
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
1410a7c678
Commit
d775003bb2
@ -28,7 +28,7 @@ public class TerminalConsoleWriterThread extends Thread {
|
|||||||
|
|
||||||
// Using name from log4j config in vanilla jar
|
// Using name from log4j config in vanilla jar
|
||||||
while (true) {
|
while (true) {
|
||||||
message = QueueLogAppender.getNextLogEvent("ServerGuiConsole");
|
message = QueueLogAppender.getNextLogEvent("TerminalConsole");
|
||||||
if (message == null) {
|
if (message == null) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,9 @@
|
|||||||
<Queue name="ServerGuiConsole">
|
<Queue name="ServerGuiConsole">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" />
|
||||||
</Queue>
|
</Queue>
|
||||||
|
<Queue name="TerminalConsole">
|
||||||
|
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
||||||
|
</Queue>
|
||||||
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
|
||||||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
|
||||||
<Policies>
|
<Policies>
|
||||||
@ -24,6 +27,7 @@
|
|||||||
<AppenderRef ref="SysOut"/>
|
<AppenderRef ref="SysOut"/>
|
||||||
<AppenderRef ref="File"/>
|
<AppenderRef ref="File"/>
|
||||||
<AppenderRef ref="ServerGuiConsole"/>
|
<AppenderRef ref="ServerGuiConsole"/>
|
||||||
|
<AppenderRef ref="TerminalConsole"/>
|
||||||
</Root>
|
</Root>
|
||||||
</Loggers>
|
</Loggers>
|
||||||
</Configuration>
|
</Configuration>
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren