lections.iiif-bookshelf-webapp.2.9.1.source-code.logback-spring.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <configuration> <!-- see https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-logging.html#_profile_specific_configuration --> <springProfile name="DEV, STG, PROD"> <appender name="default" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>/tmp/iiifBookshelf.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>/tmp/iiifBookshelf.%d{yyyy-MM-dd}.log</fileNamePattern> </rollingPolicy> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>/tmp/iiifBookshelf.%d{yyyy-MM}.%i.log.gz</fileNamePattern> <maxFileSize>100MB</maxFileSize> <maxHistory>90</maxHistory> <totalSizeCap>5GB</totalSizeCap> </rollingPolicy> <encoder> <pattern>[%d{ISO8601} %5p] %40.40c:%4L [%-8t] - %m%n</pattern> </encoder> <!-- <encoder class="net.logstash.logback.encoder.LogstashEncoder"> <customFields>{"service":"webapp-blueprint", "group":"webapps", "instance":"${instance.name:-default}"}</customFields> </encoder> --> </appender> </springProfile> <springProfile name="local"> <appender name="default" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>[%d{ISO8601} %5p] %40.40c:%4L [%-8t] - %m%n</pattern> </encoder> </appender> </springProfile> <!-- if no environment of above is set add console log as fallback --> <!-- documented feature, but working with OR, so can not be used this way! --> <!-- see: https://github.com/spring-projects/spring-boot/issues/5851 --> <!-- <springProfile name="!local, !DEV, !STG, !PROD"> <appender name="default" class="ch.qos.logback.core.ConsoleAppender"> <encoder> <pattern>[%d{ISO8601} %5p] %40.40c:%4L [%-8t] - %m%n</pattern> </encoder> </appender> </springProfile> --> <!--<logger name="de.digitalcollections.iiif" level="debug" />--> <root level="info"> <appender-ref ref="default" /> </root> </configuration>