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

hronicle-logger-benchmark.4.22ea4.source-code.log4j2.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!--
  ~ Copyright (C) 2014-2017  Chronicle Software
  ~
  ~ https://chronicle.software
  ~
  ~ 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 packages="net.openhft.chronicle.logger,net.openhft.chronicle.logger.log4j2">

    <!-- ******************************************************************* -->
    <!-- APPENDERS                                                           -->
    <!-- ******************************************************************* -->

    <Appenders>

        <Console name="STDOUT" target="SYSTEM_OUT">
            <PatternLayout pattern="[CHRONOLOGY] [%-5p] %c - %m%n%throwable{none}"/>
        </Console>

        <Chronicle name="PERF-CHRONICLE">
            <path>${env:HOME}/chronicle-log4j2-bench/perf-chronicle</path>
        </Chronicle>

        <File name="FILE" fileName="${env:HOME}/chronicle-log4j2-bench/test.log">
            <PatternLayout><pattern>%d [%t] %p %c - %m %ex%n</pattern></PatternLayout>
        </File>

    </Appenders>

    <!-- ******************************************************************* -->
    <!-- LOGGERS                                                             -->
    <!-- ******************************************************************* -->

    <loggers>

        <root level="warn">
            <appender-ref ref="STDOUT"/>
        </root>

        <logger name="perf-chro" level="trace" additivity="false">
            <appender-ref ref="PERF-CHRONICLE"/>
        </logger>
        <logger name="perf-file" level="trace" additivity="false">
            <appender-ref ref="FILE"/>
        </logger>

        <!-- *************************************************************** -->
        <!--                                                                 -->
        <!-- *************************************************************** -->

        <logger name="net.openhft" level="error"/>

    </loggers>

</configuration>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy