[logback-user] Hostname in SMTPAppender subject
Mayes, Christopher
Christopher.Mayes at cmegroup.com
Mon Sep 29 22:59:56 CEST 2008
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
More information about the Logback-user
mailing list