mirror of
https://github.com/ViaVersion/VIAaaS.git
synced 2024-11-14 10:45:34 +01:00
async log4j, fix netty natives
This commit is contained in:
parent
1ab55c4a09
commit
64bc013ed3
@ -64,8 +64,14 @@ dependencies {
|
||||
implementation("com.viaversion:viabackwards:$vbVer") { isTransitive = false }
|
||||
implementation("com.github.ViaVersion.ViaRewind:viarewind-all:$vrVer") { isTransitive = false }
|
||||
|
||||
implementation("io.netty:netty-all:4.1.82.Final")
|
||||
implementation("io.netty:netty-tcnative-boringssl-static:2.0.54.Final")
|
||||
val nettyVer = "4.1.82.Final"
|
||||
implementation("io.netty:netty-handler-proxy:$nettyVer")
|
||||
implementation("io.netty:netty-resolver-dns:$nettyVer")
|
||||
implementation("io.netty:netty-transport-native-epoll:$nettyVer:linux-aarch_64")
|
||||
implementation("io.netty:netty-transport-native-epoll:$nettyVer:linux-x86_64")
|
||||
implementation("io.netty:netty-tcnative-boringssl-static:2.0.54.Final:linux-aarch_64")
|
||||
implementation("io.netty:netty-tcnative-boringssl-static:2.0.54.Final:linux-x86_64")
|
||||
implementation("io.netty.incubator:netty-incubator-transport-native-io_uring:0.0.15.Final:linux-aarch_64")
|
||||
implementation("io.netty.incubator:netty-incubator-transport-native-io_uring:0.0.15.Final:linux-x86_64")
|
||||
|
||||
implementation("com.google.guava:guava:31.1-jre")
|
||||
@ -76,6 +82,7 @@ dependencies {
|
||||
|
||||
val log4jVer = "2.19.0"
|
||||
val slf4jVer = "2.0.3"
|
||||
implementation("com.lmax:disruptor:3.4.4")
|
||||
implementation("net.minecrell:terminalconsoleappender:1.3.0")
|
||||
implementation("org.apache.logging.log4j:log4j-core:$log4jVer")
|
||||
implementation("org.apache.logging.log4j:log4j-iostreams:$log4jVer")
|
||||
|
1
src/main/resources/log4j2.component.properties
Normal file
1
src/main/resources/log4j2.component.properties
Normal file
@ -0,0 +1 @@
|
||||
log4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector
|
@ -6,7 +6,8 @@
|
||||
<PatternLayout
|
||||
pattern="%d{HH:mm:ss} %style{%highlight{%level}{FATAL=red blink, ERROR=red, WARN=yellow bright, INFO=cyan bright, DEBUG=green, TRACE=white}} [%thread] [%logger] %minecraftFormatting{%msg}%n"/>
|
||||
</TerminalConsole>
|
||||
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM}/%d{yyyy-MM-dd}-%i.log.gz">
|
||||
<RollingRandomAccessFile name="File" fileName="logs/latest.log"
|
||||
filePattern="logs/%d{yyyy-MM}/%d{yyyy-MM-dd}-%i.log.gz" immediateFlush="false">
|
||||
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss} [%t] [%logger] %level{length=1} %minecraftFormatting{%msg}{strip}%n"/>
|
||||
<Policies>
|
||||
<TimeBasedTriggeringPolicy/>
|
||||
@ -14,7 +15,8 @@
|
||||
<OnStartupTriggeringPolicy/>
|
||||
</Policies>
|
||||
</RollingRandomAccessFile>
|
||||
<RollingRandomAccessFile name="DebugFile" fileName="logs/debug.log" filePattern="logs/debug-%i.log.gz">
|
||||
<RollingRandomAccessFile name="DebugFile" fileName="logs/debug.log"
|
||||
filePattern="logs/debug-%i.log.gz" immediateFlush="false">
|
||||
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss} [%t] [%logger] %level{length=1} %minecraftFormatting{%msg}{strip}%n"/>
|
||||
<Policies>
|
||||
<SizeBasedTriggeringPolicy size="20 MB"/>
|
||||
|
Loading…
Reference in New Issue
Block a user