| | |
| | | <configuration scan="true"> |
| | | <include resource="org/springframework/boot/logging/logback/base.xml"/> |
| | | |
| | | <property name="logback.dir" value="/appublic/applications/pamapi"/> |
| | | |
| | | <springProfile name="sit,uat,prod"> |
| | | <appender name="logToFile" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
| | | <File>${logback.dir}/pamapi_server.log</File> |
| | | <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
| | | <FileNamePattern>${logback.dir}/log.%d{yyyy-MM-dd}.zip</FileNamePattern> |
| | | <maxHistory>180</maxHistory> |
| | | <totalSizeCap>2GB</totalSizeCap> |
| | | </rollingPolicy> |
| | | <encoder> |
| | | <charset>UTF-8</charset> |
| | | <pattern>%d [%thread] %-5level %logger{36} %line - %msg%n</pattern> |
| | | </encoder> |
| | | </appender> |
| | | |
| | | <root level="DEBUG"> |
| | | <appender-ref ref="logToFile" /> |
| | | </root> |
| | | </springProfile> |
| | | |
| | | <!-- The FILE and ASYNC appenders are here as examples for a production configuration --> |
| | | <!-- |
| | | <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |