lections.iiif-server-hymir.4.0.2.source-code.logback-spring.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iiif-server-hymir Show documentation
Show all versions of iiif-server-hymir Show documentation
Hymir is a Java based IIIF Server. It is based on "IIIF API Java Libraries" (Java implementations of the IIIF specifications, see https://github.com/dbmdz/iiif-apis).
<?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="PROD"> <appender name="default" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>./hymir.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>hymir.%d{yyyy-MM-dd}.log</fileNamePattern> </rollingPolicy> <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> <fileNamePattern>hymir.%d{yyyy-MM}.%i.log.gz</fileNamePattern> <maxFileSize>100MB</maxFileSize> <maxHistory>90</maxHistory> <totalSizeCap>5GB</totalSizeCap> </rollingPolicy> <encoder class="net.logstash.logback.encoder.LogstashEncoder"> <customFields>{"service":"hymir-server", "group":"rest", "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> <logger name="de.digitalcollections.iiif.hymir.presentation.backend" level="error" /> <logger name="de.digitalcollections.iiif.hymir.presentation.business" level="error" /> <logger name="de.digitalcollections.commons" level="error" /> <root level="info"> <appender-ref ref="default" /> </root> </configuration>