1Layout::PatternLayout::UMsuelrtiCloinnter(i3b)uted PerlLDaoycouumte:n:tPaattitoenrnLayout::Multiline(3)
2
3
4
6 Log::Log4perl::Layout::PatternLayout::Multiline
7
9 use Log::Log4perl::Layout::PatternLayout::Multiline;
10
11 my $layout = Log::Log4perl::Layout::PatternLayout::Multiline->new(
12 "%d (%F:%L)> %m");
13
15 "Log::Log4perl::Layout::PatternLayout::Multiline" is a subclass of
16 Log4perl's PatternLayout and is helpful if you send multiline messages
17 to your appenders which appear as
18
19 2007/04/04 23:59:01 This is
20 a message with
21 multiple lines
22
23 and you want them to appear as
24
25 2007/04/04 23:59:01 This is
26 2007/04/04 23:59:01 a message with
27 2007/04/04 23:59:01 multiple lines
28
29 instead. This layout class simply splits up the incoming message into
30 several chunks split by line breaks and renders them with PatternLayout
31 just as if it had arrived in separate chunks in the first place.
32
34 Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess
35 <cpan@goess.org>.
36
37 This library is free software; you can redistribute it and/or modify it
38 under the same terms as Perl itself.
39
40
41
42perl v5.12.2 2010-08-31Layout::PatternLayout::Multiline(3)