nacos-client.1.1.4.source-code.nacos-logback.xml Maven / Gradle / Ivy
The newest version!
<?xml version="1.0" encoding="UTF-8"?> <configuration debug="false" scan="true" scanPeriod="30 seconds" packagingData="true"> <contextName>nacos</contextName> <appender name="CONFIG_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${nacos.logging.path}/config.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${nacos.logging.path}/config.log.%i</fileNamePattern> <maxIndex>${JM.LOG.RETAIN.COUNT:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${JM.LOG.FILE.SIZE:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</pattern> </encoder> </appender> <appender name="NAMING_LOG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${nacos.logging.path}/naming.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy"> <fileNamePattern>${nacos.logging.path}/naming.log.%i</fileNamePattern> <maxIndex>${JM.LOG.RETAIN.COUNT:-7}</maxIndex> </rollingPolicy> <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"> <maxFileSize>${JM.LOG.FILE.SIZE:-10MB}</maxFileSize> </triggeringPolicy> <encoder> <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %p [%-5t:%c{2}] %m%n</pattern> </encoder> </appender> <logger name="com.alibaba.nacos.client" level="${com.alibaba.nacos.config.log.level:-info}" additivity="false"> <appender-ref ref="CONFIG_LOG_FILE"/> </logger> <logger name="com.alibaba.nacos.client.config" level="${com.alibaba.nacos.config.log.level:-info}" additivity="false"> <appender-ref ref="CONFIG_LOG_FILE"/> </logger> <logger name="com.alibaba.nacos.client.naming" level="${com.alibaba.nacos.naming.log.level:-info}" additivity="false"> <appender-ref ref="NAMING_LOG_FILE"/> </logger> </configuration>