SHARE
TWEET

Untitled

a guest Aug 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <configuration>
  2.  
  3.     <property name="HOME_LOG" value="logs/app.log"/>
  4.  
  5.     <appender name="FILE-ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender">
  6.         <file>${HOME_LOG}</file>
  7.  
  8.         <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
  9.             <fileNamePattern>logs/archived/app.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
  10.             <!-- each archived file, size max 10MB -->
  11.             <maxFileSize>10MB</maxFileSize>
  12.             <!-- total size of all archive files, if total size > 20GB, it will delete old archived file -->
  13.             <totalSizeCap>20GB</totalSizeCap>
  14.             <!-- 60 days to keep -->
  15.             <maxHistory>60</maxHistory>
  16.         </rollingPolicy>
  17.  
  18.         <encoder>
  19.             <pattern>%d %p %c{1.} [%t] %m%n</pattern>
  20.         </encoder>
  21.     </appender>
  22.  
  23.     <logger name="com.mkyong" level="debug" additivity="false">
  24.         <appender-ref ref="FILE-ROLLING"/>
  25.     </logger>
  26.  
  27.     <root level="error">
  28.         <appender-ref ref="FILE-ROLLING"/>
  29.     </root>
  30.  
  31. </configuration>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top