On Fri, 15 Mar 2013, Dmitry Bigunyak wrote:

> That brings me to the idea of having a chain of layout (in current 
> terminology) when you get an actual result passed through a number of 
> layouts and formatted in each of them accordingly.

Have you looked at composite appenders yet?

     
http://search.cpan.org/~mschilli/Log-Log4perl-1.40/lib/Log/Log4perl/Appender.pm#Composite_Appenders

You can use a composite appender to preprocess the message and have it
forwarded to the target appender right after.

For the type of processing you have in mind, I've originally put
warp_message in place, but I agree that the fact that it always produces
an array ref isn't helpful. Maybe we need another preprocess hook for
appenders in Log4perl.

-- 
-- Mike

Mike Schilli
m...@perlmeister.com

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
log4perl-devel mailing list
log4perl-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/log4perl-devel

Reply via email to