use gz for logs

This commit is contained in:
creeper123123321 2021-05-01 18:39:17 -03:00
parent 6e9fe83bcc
commit ccfed4f20c
2 changed files with 2 additions and 3 deletions

View File

@ -64,7 +64,6 @@ dependencies {
implementation("net.minecrell:terminalconsoleappender:1.2.0")
implementation("org.jline:jline-terminal-jansi:3.19.0")
implementation("org.apache.commons:commons-compress:1.20")
implementation("org.tukaani:xz:1.9")
val ktorVersion = "1.5.3"
implementation(kotlin("stdlib-jdk8"))

View File

@ -6,7 +6,7 @@
<PatternLayout
pattern="%d{HH:mm:ss} %style{%highlight{%level}{FATAL=red dark, 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-dd}-%i.log.xz">
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss} [%t] [%logger] %level{length=1} %msg%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
@ -14,7 +14,7 @@
<OnStartupTriggeringPolicy/>
</Policies>
</RollingRandomAccessFile>
<RollingRandomAccessFile name="DebugFile" fileName="logs/debug.log" filePattern="logs/debug-%i.log.xz">
<RollingRandomAccessFile name="DebugFile" fileName="logs/debug.log" filePattern="logs/debug-%i.log.gz">
<PatternLayout pattern="%d{yyy-MM-dd HH:mm:ss} [%t] [%logger] %level{length=1} %msg%n"/>
<Policies>
<SizeBasedTriggeringPolicy size="5 MB"/>