1Appender::TestArrayBuffUesre(r3)Contributed Perl DocumenAtpapteinodner::TestArrayBuffer(3)
2
3
4

NAME

6       Log::Log4perl::Appender::TestArrayBuffer - Subclass of Appender::Test‐
7       Buffer
8

SYNOPSIS

10         use Log::Log4perl::Appender::TestArrayBuffer;
11
12         my $appender = Log::Log4perl::Appender::TestArrayBuffer->new(
13             name      => 'buffer',
14             min_level => 'debug',
15             );
16
17             # Append to the buffer
18         $appender->log_message(
19             level =  > 'alert',
20             message => ['first', 'second', 'third'],
21             );
22
23             # Retrieve the result
24         my $result = $appender->buffer();
25
26             # Reset the buffer to the empty string
27         $appender->reset();
28

DESCRIPTION

30       This class is a subclass of Log::Log4perl::Appender::TestBuffer and
31       just provides message array refs as an additional feature.
32
33       Just like Log::Log4perl::Appender::TestBuffer, Log::Log4perl::Appen‐
34       der::TestArrayBuffer is used for internal Log::Log4perl testing only.
35

SEE ALSO

AUTHOR

38       Mike Schilli, <m@perlmeister.com>
39
40
41
42perl v5.8.8                       2002-07-10      Appender::TestArrayBuffer(3)
Impressum