All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pc.jupiter-example.1.2.21.source-code.logback.xml Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
<?xml version="1.0" encoding="UTF-8" ?>

<!--
  ~ Copyright (c) 2015 The Jupiter Project
  ~
  ~ Licensed under the Apache License, version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at:
  ~
  ~   http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->

<configuration scan="false">
    <!-- 标准输出 -->
    <appender name="STD_OUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] [%logger{0}] - %msg%n</pattern>
        </encoder>
    </appender>

    <!--<appender name="FILE_OUT" class="ch.qos.logback.core.FileAppender">-->
        <!--<File>logs/log.log</File>-->
        <!--<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">-->
            <!--<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%thread] [%logger{0}] - %msg%n</pattern>-->
        <!--</encoder>-->
    <!--</appender>-->

    <appender name="ASYNC_OUT" class="ch.qos.logback.classic.AsyncAppender">
        <!-- 如果队列元素超过容量80%,丢掉WARN级别以下的新日志 -->
        <queueSize>65536</queueSize>
        <appender-ref ref="STD_OUT" />
    </appender>

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy