0

有没有办法在 Logback 模式下仅根据日志文件大小轮换日志文件prudent?从文档中我看到模式(http://logback.qos.ch/manual/appenders.html#RollingFileAppenderTimeBasedRollingPolicy )支持,但是基于大小的滚动策略呢?另外要明确的是,我不打算重命名任何日志文件。例如:prudent

foo.log    ---> (Original log file, created as foo.log)
foo_1.log  ---> (Second log file after above is "full", created as foo_1.log)
foo_2.log  ---> (Third log file after above is "full", created as foo_2.log)

使用 Logback v.1.2.3

4

0 回答 0