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

logging-logback_3.1.0.0-20240221_1247_master.source-code.logback-default.xml Maven / Gradle / Ivy

The newest version!
<configuration scan="false">

    <variable name="LayoutPattern" value="%d{HH:mm:ss.SSS} | %-5level | %thread | [%X{ndc}%kvp] | %logger | %msg - %marker%n" />

    <if condition='property("bootstrap.fileLogging").equals("true")'>
        <then>

            <appender name="errors" class="net.model3.logging.logback.RollingFileAppender">
                <kind>errors</kind>
                <encoder>
                    <pattern>${LayoutPattern}</pattern>
                </encoder>
            </appender>

            <appender name="details" class="net.model3.logging.logback.RollingFileAppender">
                <kind>details</kind>
                <encoder>
                    <pattern>${LayoutPattern}</pattern>
                </encoder>
            </appender>

            <root>
                <appender-ref ref="details" />
                <appender-ref ref="errors" />
            </root>

        </then>
    </if>

    <if condition='property("bootstrap.consoleLogging").equals("true")'>
        <then>

            <if condition='property("bootstrap.hasColorConsole").equals("true")'>
                <then>
                    <appender name="console" class="net.model3.logging.logback.ConsoleAppender">
                        <kind>stdout</kind>
                        <encoder class="net.model3.logging.logback.ColoredConsoleEncoder" />
                    </appender>
                </then>
                <else>
                    <appender name="console" class="net.model3.logging.logback.ConsoleAppender">
                        <kind>daemon</kind>
                        <encoder>
                            <pattern>${LayoutPattern}</pattern>
                        </encoder>
                    </appender>
                </else>
            </if>

            <root>
                <appender-ref ref="console" />
            </root>

        </then>
    </if>

    <root level="debug">
    </root>


    <Logger name="com.amazonaws" level="INFO"/>
    <Logger name="com.mchange" level="INFO"/>
    <Logger name="com.zaxxer.hikari" level="INFO"/>

    <Logger name="log4jdbc.debug" level="INFO"/>

    <Logger name="net.sf.jasperreports" level="INFO"/>

    <Logger name="org.apache.kafka" level="INFO"/>
    <Logger name="org.apache.commons" level="INFO"/>
    <Logger name="org.apache.http" level="INFO"/>
    <Logger name="org.apache.jasper" level="INFO"/>
    <Logger name="org.apache.pulsar" level="WARN"/>

    <Logger name="org.eclipse.jetty" level="INFO"/>
    <Logger name="org.fusesource.scalate" level="INFO"/>
    <Logger name="org.mortbay" level="INFO"/>
    <Logger name="org.quartz" level="INFO"/>
    <Logger name="play.shaded.ahc" level="INFO"/>

    <Logger name="org.asynchttpclient.netty" level="INFO"/>
    <Logger name="io.netty" level="INFO"/>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy