logback.xml 472 Bytes
<configuration>
    <!-- 其他 Logback 配置 -->

    <appender name="SENTRY" class="io.sentry.logback.SentryAppender">
        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
            <level>ERROR</level>
        </filter>
        <!-- 配置 Sentry DSN -->
        <dsn>http://85293a9310fc4a8187422a7a257fc1ba@sentry.zjhuixinyun.com/8</dsn>
    </appender>

    <root level="INFO">
        <appender-ref ref="SENTRY" />
    </root>
</configuration>