My logging config looks like this:
logging:
level: INFO
loggers:
"com.example.broker": DEBUG
"org.apache.http.wire": DEBUG
console:
threshold: ERROR
file:
enabled: true
currentLogFilename: /opt/broker/log/broker.log
archivedLogFilenamePattern: /opt/broker/log/broker.%d.log.gz
archivedFileCount: 14
This is awesome, I get all my logs in the given files with proper rotation and cleanup.
Except for the access log which still goes to stdout and thus ends up (in my case) in /var/log/upstart/broker.log
which is accessible by root only. I'd like to make use of the same or a similar logging config to redirect those logs to /opt/broker/log/access.log
.
Is this possible and if so, how?