logback的configuration

logback的<configuration>只有三个属性:

1、scan【boolean】:当scan被设置为true时,当配置文件发生改变,将会被重新加载。默认值为true。

2、scanPeriod【int(ms)】:检测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认为毫秒,当scan=true是这个值生效,默认时间间隔为1min。

3、debug【boolean】:当被设置为true时,将打印出logback内部日志,实时查看logback运行信息,默认为false

猜你喜欢

转载自www.cnblogs.com/yourGod/p/9122552.html