From: Mike S. <m...@pe...> - 2005-04-22 08:27:25
|
On Fri, 15 Apr 2005 Tim...@HV... wrote: > I would like to put the severity level in email subjects and not only in the > body. > > Apparently, there was a thread on this issue back in January 2003. At this > time it was not possible to put it into a parametrization of > Log::Dispatch::Email::MailSend. > > Has there been any progress since? Looks like you're the only guy requesting this :). But seriously, it would be very easy for you to create a custom appender doing this. What you need is a custom appender skeleton as described in http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/FAQ.html#e8a46 and have its log() method extract the log4p_level parameter which is passed into it, and put it into the subject of an email. Let me know if you need any help implementing. -- Mike Mike Schilli m...@pe... |