I use Logback / SLF4J for logging, and it works like a charm on my Mac development machine.
I have the following template used for the mailing subject:
<subject>[ERROR] ${HOSTNAME} : %msg</subject>
When starting the service on my Mac, I get this question:
macbook-pro.localhost : Error message
When I start the service on VBS Debian (Lenny), I get the following email object
HOSTNAME_IS_UNDEFIENED : Error message
Entering hostname on the command line for Mac and Debian creates the following:
mac: macbook-pro.localhost debian: s1.myservice.com
I would like to see s1.myservice.com in the subject line.
source share