【发布时间】:2019-05-23 11:31:18
【问题描述】:
我们希望使用 wildfly 日志子系统中可用的 size-rotating-file-handler 进行基于大小的旋转和压缩。但是我们可以旋转文件但不能进行压缩或压缩。 wildfly 中是否有任何替代方法,以便我们可以同时实现日志轮换和压缩?
我们已经关注并尝试了以下链接,但没有得到任何运气: https://developer.jboss.org/thread/278779
注意:我们使用的是 wildlfy-14 版本。
我们已经使用了以下 CLI 配置:
/profile=full-ha/subsystem=logging/periodic-rotating-file-handler=FILE:remove()
/profile=full-ha/subsystem=logging/size-rotating-file-handler=FILE:add(name=FILE,autoflush=false,file={relative-to=jboss.server.log.dir,path=server.log},append=true,named-formatter=PATTERN,rotate-size=10m,max-backup-index=15,level=DEBUG)
/profile=full-ha/subsystem=logging/logger=org.hibernate.orm.deprecation:add(level=ERROR)
【问题讨论】:
标签: logging wildfly logrotate jboss-eap-7