From: <Tim...@HV...> - 2005-04-25 15:10:19
|
> -----Original Message----- > From: Mike Schilli [SMTP:m...@pe...] > Sent: Friday, April 22, 2005 10:27 AM > To: M=FCller-Seydlitz, Tim (ext.) > Cc: log...@li... > Subject: Re: [log4perl-devel] Place severity in email subject? >=20 > On Fri, 15 Apr 2005 Tim...@HV... wrote: >=20 > > 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? >=20 > Looks like you're the only guy requesting this :). >=20 > 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 >=20 > =20 > = http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4= pe > rl/FAQ.html#e8a46 >=20 > and have its log() method extract the log4p_level parameter which is > passed into it, > and put it into the subject of an email. [M=FCller-Seydlitz, Tim (ext.)] Thanks a lot. This is exactly what I already did. I just didn't want to reinvent the wheel. > Let me know if you need any help implementing. >=20 > -- Mike >=20 > Mike Schilli > m...@pe... |