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

resources.isylogging.logback.appender.xml Maven / Gradle / Ivy

<!--
  #%L
  isy-logging
  %%
  %%
  See the NOTICE file distributed with this work for additional
  information regarding copyright ownership.
  The Federal Office of Administration (Bundesverwaltungsamt, BVA)
  licenses this file to you 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.
  #L%
  -->
<included>

    <!-- Appender zum rollierenden Schreiben in Logdateien. -->
    <appender name="DATEI_ANWENDUNG" class="ch.qos.logback.core.rolling.RollingFileAppender">

        <!-- Zu verwendende Logdatei. -->
        <file>${LOGFILE_PATH}.log</file>

        <!-- Strategie zum Rollieren der Logdateien. -->
        <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
            <!-- Stündliche Rotation der Logdateien. -->
            <fileNamePattern>
                ${LOGFILE_PATH}_%d{yyyy-MM-dd_HH,UTC}.log
            </fileNamePattern>
            <!-- Das Löschen der Logdateien erfolgt durch die Infrastruktur,
                daher wird das Attribut 'maxHistory' nicht angegeben (entspricht einer unendlichen
                Historie) <maxHistory>0</maxHistory> -->
        </rollingPolicy>

        <!-- Vorhandene Logdateien sollen fortgesetzt werden. -->
        <append>true</append>

        <!-- Encoder zum Steuern des Schreibens der Logeinträge -->
        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
            <!-- IsyFact-Layout zum Aufbereiten der Logeinträge -->
            <layout class="de.bund.bva.isyfact.logging.layout.IsyJsonLayout">
                <jsonFormatter class="de.bund.bva.isyfact.logging.layout.IsyJacksonJsonFormatter">
                    <prettyPrint>false</prettyPrint>
                </jsonFormatter>
                <timestampFormat>yyyy-MM-dd'T'HH:mm:ss.SSS'Z'</timestampFormat>
                <timestampFormatTimezoneId>UTC</timestampFormatTimezoneId>
                <appendLineSeparator>true</appendLineSeparator>
                <includeMDC>${INCLUDE_MDC}</includeMDC>
                <maxLength>${MAX_LENGTH}</maxLength>
            </layout>
        </encoder>
    </appender>

</included>





© 2015 - 2024 Weber Informatics LLC | Privacy Policy