mocks.elsci-mocks-all-webapp.1-20231113.1111-60.source-code.logback.xml Maven / Gradle / Ivy
<configuration> <contextListener class="io.elsci.mocks.web.tomcat.Slf4jOverJulPropogator"/> <contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator"> <!-- reset all previous level configurations of all j.u.l. loggers --> <resetJUL>true</resetJUL> </contextListener> <property name="LOG_PATTERN" value="${LOG_PATTERN:-%d{yyyy-MM-dd HH:mm:ss} [%X{user}] [%11.11thread] %-5level %36.36logger{36} - %msg%n}" /> <appender name="console" class="ch.qos.logback.core.ConsoleAppender"> <encoder><pattern>${LOG_PATTERN}</pattern></encoder> </appender> <appender name="fileAppender" class="ch.qos.logback.core.rolling.RollingFileAppender"> <file>${user.log_dir:-${user.home}}${file.separator}elsci${file.separator}mocks${file.separator}elscimocks.log</file> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${user.log_dir:-${user.home}}${file.separator}elsci${file.separator}mocks${file.separator}elscimocks.%d{yyyy-MM-dd}.log</fileNamePattern> <maxHistory>30</maxHistory> <totalSizeCap>3GB</totalSizeCap> </rollingPolicy> <encoder><pattern>${LOG_PATTERN}</pattern></encoder> </appender> <!--Next two can be changed to TRACE to see what values Hibernate uses when executing queries--> <logger name="org.springframework.boot.autoconfigure" level="TRACE"/> <logger name="org.hibernate.SQL" level="INFO"/> <logger name="org.hibernate.orm.jdbc.bind" level="INFO"/> <logger name="org.hibernate.type.EnumType" level="INFO"/> <logger name="org.postgresql" level="INFO"/> <logger name="org.springframework.security.web.access" level="INFO"/> <!-- Spring WARNs us that it's not secure to store open passwords (for in-memory users) in the config, but at the moment we don't want to care about this. Later we should add an ability to use encrypted ones.--> <logger name="org.springframework.security.core.userdetails.User" level="ERROR"/> <!--In case no RequestMapper was resolved for a request (e.g. SpringMVC method is incorrectly mapped or some wrong params/headers are sent from the client), the reason isn't logged unless this one is enabled--> <logger name="org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver" level="DEBUG" /> <!--Shows which filters, listeners and servlets get registered in Servlet Container. Useful to see them to understand the app better.--> <logger name="org.springframework.boot.web.servlet" level="INFO"/> <!--Outputs info about which config file is used and which profiles are activated. Important stuff.--> <logger name="org.springframework.boot.context.config" level="DEBUG"/> <!--If an error occurs while resolving URL arguments, it can be helpful to know where this happened.--> <logger name="org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod" level="DEBUG"/> <logger name="com.hierynomus.smbj" level="WARN"/> <root level="INFO"> <appender-ref ref="fileAppender"/> <appender-ref ref="console"/> </root> </configuration>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy