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-2013 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
44 Please contribute patches to the project on Github:
45
46 http://github.com/mschilli/log4perl
47
48 Send bug reports or requests for enhancements to the authors via our
49
50 MAILING LIST (questions, bug reports, suggestions/patches):
51 log4perl-devel@lists.sourceforge.net
52
53 Authors (please contact them via the list above, not directly): Mike
54 Schilli <m@perlmeister.com>, Kevin Goess <cpan@goess.org>
55
56 Contributors (in alphabetical order): Ateeq Altaf, Cory Bennett, Jens
57 Berthold, Jeremy Bopp, Hutton Davidson, Chris R. Donnelly, Matisse
58 Enzer, Hugh Esco, Anthony Foiani, James FitzGibbon, Carl Franks, Dennis
59 Gregorovic, Andy Grundman, Paul Harrington, Alexander Hartmaier David
60 Hull, Robert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter,
61 Brett Rann, Peter Rabbitson, Erik Selberg, Aaron Straup Cope, Lars
62 Thegler, David Viner, Mac Yang.
63
64
65
66perl v5.32.0 2020-09-07 Appender::TestArrayBuffer(3)