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

hik.brunner-owlAPI.1.0.4.source-code.logback.xml Maven / Gradle / Ivy

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

    <statusListener class="ch.qos.logback.core.status.NopStatusListener" />

    <!-- Console Appender -->
    <appender name="ConsoleAppender" class="ch.qos.logback.core.ConsoleAppender">
        <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
            <evaluator>
                <!-- An expression that evaluates to true for the messages to be denied -->
                <expression>return logger.contains("BeanIntrospector");</expression>
            </evaluator>
            <OnMismatch>NEUTRAL</OnMismatch>
            <OnMatch>DENY</OnMatch>
        </filter>
        <encoder>
            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{0}:%L - %method: %msg%n</pattern>
        </encoder>
    </appender>

    <!-- File Appender -->
    <appender name="FileAppender" class="ch.qos.logback.core.FileAppender">
        <filter class="ch.qos.logback.core.filter.EvaluatorFilter">
            <evaluator>
                <!-- Duplicate the filter settings for the File Appender -->
                <expression>return logger.contains("BeanIntrospector");</expression>
            </evaluator>
            <OnMismatch>NEUTRAL</OnMismatch>
            <OnMatch>DENY</OnMatch>
        </filter>
        <file>brunnerOWLAPI.log</file> <!-- Output log file name -->
        <append>true</append> <!-- Append to existing log file -->
        <encoder>
            <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %logger{0}:%L - %method: %msg%n</pattern>
        </encoder>
    </appender>

   <!-- Root logger configuration -->
    <root level="INFO">
        <appender-ref ref="FileAppender" />
        <appender-ref ref="ConsoleAppender" level="INFO"/>
    </root>

</configuration>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy