logback日志配置样例

logback日志输出样例


  
      
      
      
      
      
  
      
      
          
          
              ${FILE_LOG_PATTERN}
              UTF-8
          
          ${logging.path}/app/${APP_NAME}-app.log
          
              ${logging.path}/app/${APP_NAME}-app-%d{yyyy-MM-dd_HH}.%i.log.zip
              
              500MB
              7
              20GB
          
          
          
          
      
  
      
      
          
          
              ${FILE_LOG_PATTERN}
              UTF-8
          
          ${logging.path}/audit/${APP_NAME}-audit.log
          
              ${logging.path}/audit/${APP_NAME}-audit-%d{yyyy-MM-dd_HH}.%i.log.zip
              
              500MB
              7
              20GB
          
          
          
          
      
  
      
      
          
          
              ${CONSOLE_LOG_PATTERN}
              UTF-8
          
          
          
      
  
      
      
  
      
      
          
          0
          1000
          true 
          
      
  
      
      
          
          0
          1000
          true 
          
      
  
      
      
          
      
  
      
          
  
      
  

你可能感兴趣的:(logback日志配置样例)