From: Mike S. <m...@pe...> - 2013-03-18 00:47:49
|
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...@pe... |