ynamictp.dynamic-tp-logging.1.1.8-beta.source-code.dtp-logback.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <configuration debug="false" scan="true" scanPeriod="1 seconds" packagingData="true"> <contextName>DynamicTp</contextName> <appender name="MONITOR_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${LOG.PATH}/dynamictp/${APP.NAME}.monitor.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>${LOG.PATH}/dynamictp/${APP.NAME}.monitor.%d{yyyy-MM-dd}.%i.log.gz</fileNamePattern> <maxFileSize>${LOG.MAX_FILE_SIZE:-200MB}</maxFileSize> <maxHistory>${LOG.MAX_HISTORY:-7}</maxHistory> <totalSizeCap>${LOG.TOTAL_SIZE_CAP:-2GB}</totalSizeCap> </rollingPolicy> <encoder> <pattern>{"datetime": "%d{yyyy-MM-dd HH:mm:ss.SSS}", "app_name": "${APP.NAME}", "thread_pool_metrics": %m}%n</pattern> </encoder> </appender> <logger name="DTP.MONITOR.LOG" additivity="false"> <level value="INFO"/> <appender-ref ref="MONITOR_LOG_FILE"/> </logger> </configuration>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy