[logback-user] Hostname in SMTPAppender subject

Ceki Gulcu listid at qos.ch
Tue Sep 30 11:39:47 CEST 2008

Hello Chris,

It should work the same way. If it doesn't, it is a bug. If so, I would 
appreciate if you could file a bug report at http://jira.qos.ch/


Mayes, Christopher wrote:
> Hi, there.
> Is there a way to get the reporting machine's hostname into the subject of the SMTPAppender's email address?   According to a blog post, (http://blog.spiralarm.com/richard/2007/10/watching-production-logs.html) you can do something like this for log4j:
> <param name="Subject" value="[SMTPAppender] ${user.name}@${hostname} error message" />
> Is there a Logback equivalent?
> Thanks,
> -Chris

Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.

More information about the Logback-user mailing list