forked from openrs2/openrs2
There are two main reasons for this change: by default, logback uses stdout (!) and not stderr. This caused problems in programs like packclass/unpackclass, where the packclass or JAR files were mixed in with Netty's debug logging. Secondly, the debug logging from lots of third-party libraries was annoying (as it made it difficult to pick out OpenRS2-specific log messages), so I've disabled lots of it. Signed-off-by: Graham <gpe@openrs2.org>bzip2
parent
66c3027f8a
commit
b3d6b112d2
@ -0,0 +1,20 @@ |
||||
plugins { |
||||
`maven-publish` |
||||
kotlin("jvm") |
||||
} |
||||
|
||||
publishing { |
||||
publications.create<MavenPublication>("maven") { |
||||
from(components["java"]) |
||||
|
||||
pom { |
||||
packaging = "jar" |
||||
name.set("OpenRS2 Logging") |
||||
description.set( |
||||
""" |
||||
Provides OpenRS2's logback configuration file. |
||||
""".trimIndent() |
||||
) |
||||
} |
||||
} |
||||
} |
@ -0,0 +1,25 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<configuration xmlns="http://ch.qos.logback/xml/ns/logback" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ch.qos.logback/xml/ns/logback https://raw.githubusercontent.com/enricopulatzo/logback-XSD/master/src/main/xsd/logback.xsd"> |
||||
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender"> |
||||
<target>System.err</target> |
||||
<encoder> |
||||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern> |
||||
</encoder> |
||||
</appender> |
||||
|
||||
<root level="DEBUG"> |
||||
<appender-ref ref="STDERR" /> |
||||
</root> |
||||
|
||||
<logger name="com.zaxxer.hikari" level="WARN"> |
||||
<appender-ref ref="STDERR" /> |
||||
</logger> |
||||
|
||||
<logger name="io.netty" level="INFO"> |
||||
<appender-ref ref="STDERR" /> |
||||
</logger> |
||||
|
||||
<logger name="org.flywaydb" level="WARN"> |
||||
<appender-ref ref="STDERR" /> |
||||
</logger> |
||||
</configuration> |
Loading…
Reference in new issue