alifornium.cf-s3-proxy-server.3.13.0.source-code.logback.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cf-s3-proxy-server Show documentation
Show all versions of cf-s3-proxy-server Show documentation
Californium (Cf) S3 Proxy Server
The newest version!
<configuration> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> <encoder> <pattern>%d{HH:mm:ss.SSS} %level [%logger{0}]: %msg%n</pattern> </encoder> </appender> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>logs/app.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <!-- roll-over monthly, or if filesize exceeds --> <fileNamePattern>logs/app-%d{yyyy-MM}.%i.log</fileNamePattern> <!-- each file should be at most 10MB, keep 200 files worth of history, but at most 2GB --> <maxFileSize>5MB</maxFileSize> <maxHistory>200</maxHistory> <totalSizeCap>500MB</totalSizeCap> </rollingPolicy> <encoder> <!-- use tab to separate timestamp from message --> <pattern>[%date{yyyy-MM-dd HH:mm:ss}]\t%msg%n</pattern> </encoder> </appender> <appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>logs/error.log</file> <filter class="ch.qos.logback.classic.filter.ThresholdFilter"> <level>WARN</level> </filter> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <!-- roll-over monthly, or if filesize exceeds --> <fileNamePattern>logs/error-%d{yyyy-MM}.%i.log</fileNamePattern> <!-- each file should be at most 5MB, keep 200 files worth of history, but at most 1GB --> <maxFileSize>5MB</maxFileSize> <maxHistory>200</maxHistory> <totalSizeCap>500MB</totalSizeCap> </rollingPolicy> <encoder> <!-- use tab to separate timestamp from message --> <pattern>[%date{yyyy-MM-dd HH:mm:ss}]\t%msg%n</pattern> </encoder> </appender> <appender name="BAN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>logs/ban.log</file> <immediateFlush>true</immediateFlush> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <!-- roll-over monthly, or if filesize exceeds --> <fileNamePattern>logs/ban-%d{yyyy-MM}.%i.log</fileNamePattern> <!-- each file should be at most 1MB, keep 10 files worth of history, but at most 10MB --> <maxFileSize>1MB</maxFileSize> <maxHistory>10</maxHistory> <totalSizeCap>10MB</totalSizeCap> </rollingPolicy> <encoder> <!-- use tab to separate timestamp from message --> <pattern>[%date{yyyy-MM-dd HH:mm:ss}]\t%msg%n</pattern> </encoder> </appender> <!-- ORIGIN only to file --> <logger name="org.eclipse.californium.core.network.interceptors.HealthStatisticLogger" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.core.observe.ObserveStatisticLogger" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.cloud.s3.proxy.S3ProcessorHealthLogger" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.unixhealth" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.scandium.DTLSConnector.health" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.cloud.demoserver.statistics" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> <appender-ref ref="ERROR_FILE" /> </logger> <logger name="org.eclipse.californium.core.CoapServer" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.cloud.s3.http" level="DEBUG" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.proxy2.http.Coap2HttpProxy" level="DEBUG" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.cloud" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.elements.util.PersistentComponentUtil" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.elements.util.NetworkInterfacesUtil" level="INFO" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <logger name="org.eclipse.californium.ban" level="INFO" additivity="false"> <appender-ref ref="BAN_FILE" /> </logger> <logger name="ch.qos.logback" level="ERROR" additivity="false"> <appender-ref ref="STDOUT" /> </logger> <!-- Strictly speaking, the level attribute is not necessary since --> <!-- the level of the root level is set to DEBUG by default. --> <root level="WARN"> <appender-ref ref="STDOUT" /> <appender-ref ref="FILE" /> <appender-ref ref="ERROR_FILE" /> </root> </configuration>