Adobe-Consulting-Services/acs-aem-commons

View on GitHub
bundle/src/test/resources/logback-test-no-logging.xml

Summary

Maintainability
Test Coverage
<!--
  ~ ACS AEM Commons
  ~
  ~ Copyright (C) 2013 - 2023 Adobe
  ~
  ~ 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>
    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <!-- encoders are assigned the type
             ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
        <encoder>
            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
        </encoder>
        <filter class="ch.qos.logback.classic.filter.ThresholdFilter">
            <level>ERROR</level>
        </filter>
    </appender>

    <appender name="LogTester" class="com.adobe.acs.commons.testutil.LogTester">
    </appender>

    <logger name="com.adobe.acs.commons.remoteassets.impl.RemoteAssetDecorator">
        <level value="TRACE"/>
    </logger>
    <logger name="org.mockserver.mockserver.MockServerHandler">
        <level value="WARN"/>
    </logger>
    <logger name="org.mockserver.matchers.HttpRequestMatcher">
        <level value="WARN"/>
    </logger>
    <logger name="org.mockserver.mock.HttpStateHandler">
        <level value="WARN"/>
    </logger>

    <root level="debug">
        <appender-ref ref="STDOUT" />
        <appender-ref ref="LogTester" />
    </root>
</configuration>