mirror of
https://codeberg.org/Andre601/AdvancedServerList.git
synced 2026-11-07 01:42:41 -05:00
60 lines
2.5 KiB
XML
60 lines
2.5 KiB
XML
<!--
|
|
~ MIT License
|
|
~
|
|
~ Copyright (c) 2022-2023 Andre_601
|
|
~
|
|
~ Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
~ of this software and associated documentation files (the "Software"), to deal
|
|
~ in the Software without restriction, including without limitation the rights
|
|
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
~ copies of the Software, and to permit persons to whom the Software is
|
|
~ furnished to do so, subject to the following conditions:
|
|
~
|
|
~ The above copyright notice and this permission notice shall be included in all
|
|
~ copies or substantial portions of the Software.
|
|
~
|
|
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
~ SOFTWARE.
|
|
~
|
|
-->
|
|
|
|
<configuration debug="false">
|
|
|
|
<property name="DEV_HOME" value="./logs"/>
|
|
|
|
<!--CONSOLE -->
|
|
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
|
|
<encoder>
|
|
<pattern>%highlight([) %boldWhite(%d{dd.MM.yyyy HH:mm:ss}) %highlight(%-5level) %highlight(]) %cyan([%t]) %boldWhite([%logger{0}]) %boldRed(-) %white(%msg) %n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
<!--FILE OUT-->
|
|
<appender name="FILE-AUDIT" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
<level>INFO</level>
|
|
</filter>
|
|
<file>${DEV_HOME}/HangarUploader.log</file>
|
|
<encoder>
|
|
<pattern>%d{dd.MM.yyyy HH:mm:ss} [%thread] [ %-5level] [%logger{0}] %msg%n</pattern>
|
|
</encoder>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
|
|
<!-- rollover daily -->
|
|
<fileNamePattern>${DEV_HOME}/archived/hangeruploader-%d{dd.MM.yyyy}.%i.log</fileNamePattern>
|
|
<maxFileSize>100MB</maxFileSize>
|
|
<maxHistory>60</maxHistory>
|
|
<totalSizeCap>20GB</totalSizeCap>
|
|
</rollingPolicy>
|
|
</appender>
|
|
|
|
<!--Root logger-->
|
|
<root level="INFO">
|
|
<appender-ref ref="CONSOLE"/>
|
|
<appender-ref ref="FILE-AUDIT"/>
|
|
</root>
|
|
</configuration> |