Hello,
Sorry for the basic question but I can't seem to figure this out. When
using logback directly in my apps, I can use the ${HOSTNAME} variable in my
logback configuration to have the hostname appear in the file name.
Although I've tried multiple ways to do this with the dropwizard config
(version 0.9.2), I can't seem to make it work. Here is the logger part of
my configuration:
logging:
level: INFO
appenders:
- type: file
currentLogFilename: /var/log/myapplication.log.${HOSTNAME}
archive: true
archivedLogFilenamePattern:
/var/log/myapplication-%d{yyyyMMdd}.${HOSTNAME}.gz
archivedFileCount: 7
logFormat: '%d %-5p %m [%t] \(%c\)%n'
Has anyone encountered this before? Thanks in advance for your help and
time!
Mark Stone
--
You received this message because you are subscribed to the Google Groups
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.