flash
flash

Reputation: 1229

hornetq restart overrides the log files

hornetq restart overrides the log files,although the log file rotation is working fine, I am using the following config, I am running hornet in a standalone clustered mode

# File handler configuration handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler handler.FILE.level=DEBUG handler.FILE.properties=autoFlush,fileName,suffix,append handler.FILE.autoFlush=true handler.FILE.fileName=../logs/hornetq.log handler.FILE.suffix=.yyyy-MM-dd handler.FILE.append=true handler.FILE.formatter=PATTERN

Upvotes: 0

Views: 538

Answers (1)

flash
flash

Reputation: 1229

found out the issue, the order of the properties matter!

# File handler configuration
handler.FILE=org.jboss.logmanager.handlers.PeriodicRotatingFileHandler
handler.FILE.level=DEBUG
handler.FILE.properties=autoFlush,append,fileName,suffix
handler.FILE.autoFlush=true
handler.FILE.append=true
handler.FILE.fileName=../logs/hornetq.log
handler.FILE.suffix=.yyyy-MM-dd
handler.FILE.formatter=PATTERN

https://community.jboss.org/message/742699

Upvotes: 2

Related Questions