| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281 |
- # 共有8个级别,按照从低到高为:ALL < TRACE < DEBUG < INFO < WARN < ERROR < FATAL < OFF
- Configuration:
- status: WARN
- monitorInterval: 30
- properties: # 定义全局变量
- property: # 缺省配置(用于开发环境)。其他环境需要在VM参数中指定,如下:
- # jvm参数:-Dlog.level.console=WARN
- - name: log.level.console
- value: WARN
- - name: log.path
- value: ./logs
- - name: project.name
- value: ibps-platform-provider
- - name: log.console.pattern
- value: "%d{ISO8601} [%5.5X{threadid}] [${project.name}] [%X{appversion}] [thrid] [%X{operation}] [%X{traceid}] [%X{spanid}] [%X{serverip}] [%X{serverport}] [%X{clientip}] [%X{url}] [%X{method}] [%X{headers}] [%X{paramters}] [%X{uid}] [%5.5level] [%-30.30C{1.}] : %m%n"
- - name: log.pattern
- value: "%d{ISO8601} %-1X{threadid} ${project.name} %-1X{appversion} thrid %-1X{operation} %-1X{traceid} %-1X{spanid} %-1X{serverip} %-1X{serverport} %-1X{clientip} %-1X{url} %-1X{method} %-1X{headers} %-1X{paramters} %-1X{uid} %level %l : %m%n"
- appenders:
- # 启动日志-输出到控制台
- Console:
- - name: CONSOLE_LOG
- target: SYSTEM_OUT
- ThresholdFilter:
- level: ${sys:log.level.console}
- onMatch: ACCEPT
- onMismatch: DENY
- PatternLayout:
- pattern: ${log.console.pattern}
- # 启动日志-输出到文件
- RollingFile:
- - name: ROLLING_FILE
- fileName: ${log.path}/${project.name}.log
- filePattern: "${log.path}/history/$${date:yyyy-MM}/${project.name}-%d{yyyy-MM-dd}-%i.log.gz"
- PatternLayout:
- pattern: ${log.pattern}
- Filters:
- # 一定要先去除不接受的日志级别,然后获取需要接受的日志级别
- ThresholdFilter:
- - level: WARN
- onMatch: ACCEPT
- onMismatch: DENY
- Policies:
- TimeBasedTriggeringPolicy: # 按天分类
- modulate: true
- interval: 1
- SizeBasedTriggeringPolicy:
- size: 100MB
- DefaultRolloverStrategy: # 文件最多100个
- max: 100
- Loggers:
- AsyncRoot:
- level: WARN
- includeLocation: true
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- AsyncLogger:
- - name: org
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: org.eclipse
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: org.quartz
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: org.springframework
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: io.swagger.models.parameters.AbstractSerializableParameter
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: org.activiti
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: org.apache
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: org.apache.ibatis
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: java.sql
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: java.sql.Statement
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: java.sql.PreparedStatement
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: springfox
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: freemarker
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: pres.lnk.springframework
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: cn
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.cloud.filter
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.base.core.util.string
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.saas.base.db.tenant.spi
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.cloud.bootstrap.IbpsApplication
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.common
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.auth
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.socket
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.register
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.org
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.base.bo
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.form
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.components.codegen
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.bpmn
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.lc.ibps.office
- additivity: false
- includeLocation: true
- level: WARN
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
- - name: com.alibaba.druid.pool
- additivity: false
- includeLocation: true
- level: FATAL
- AppenderRef:
- - ref: CONSOLE_LOG
- - ref: ROLLING_FILE
|