Logging doku ergänzen
<!-- Logging -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.2.3</version>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
<version>1.2.3</version>
</dependency>
<configuration>
<!-- https://stackoverflow.com/questions/3257154/how-to-prevent-logback-from-outputting-its-own-status-at-the-start-of-every-log -->
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
<!-- Configure the Console appender -->
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{"yyyy-MM-dd'T'HH:mm:ss,SSSXXX"} [%t] %-5level %logger{36} %X{sourceThread} - %msg%n</pattern>
</encoder>
</appender>
<!-- Configure the Sentry appender, overriding the logging threshold to the WARN level -->
<appender name="Sentry" class="io.sentry.logback.SentryAppender">
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
<!-- Optionally add an encoder -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<!-- hide "Couldn't find a suitable DSN" warning -->
<logger name="io.sentry" level="ERROR">
</logger>
<logger name="com.offbynull.portmapper" level="OFF">
</logger>
<!-- available levels: off, error, warn, info, debug, trace -->
<root level="WARN">
<appender-ref ref="Console"/>
<appender-ref ref="Sentry"/>
</root>
</configuration>
Edited by bornholdt