1Appender::TestArrayBuffUesre(r3)Contributed Perl DocumenAtpapteinodner::TestArrayBuffer(3)
2
3
4
6 Log::Log4perl::Appender::TestArrayBuffer - Subclass of
7 Appender::TestBuffer
8
10 use Log::Log4perl::Appender::TestArrayBuffer;
11
12 my $appender = Log::Log4perl::Appender::TestArrayBuffer->new(
13 name => 'buffer',
14 );
15
16 # Append to the buffer
17 $appender->log(
18 level = > 'alert',
19 message => ['first', 'second', 'third'],
20 );
21
22 # Retrieve the result
23 my $result = $appender->buffer();
24
25 # Reset the buffer to the empty string
26 $appender->reset();
27
29 This class is a subclass of Log::Log4perl::Appender::TestBuffer and
30 just provides message array refs as an additional feature.
31
32 Just like Log::Log4perl::Appender::TestBuffer,
33 Log::Log4perl::Appender::TestArrayBuffer is used for internal
34 Log::Log4perl testing only.
35
37 Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess
38 <cpan@goess.org>.
39
40 This library is free software; you can redistribute it and/or modify it
41 under the same terms as Perl itself.
42
43
44
45perl v5.12.2 2010-08-31 Appender::TestArrayBuffer(3)