1Appender::String(3)   User Contributed Perl Documentation  Appender::String(3)
2
3
4

NAME

6       Log::Log4perl::Appender::String - Append to a string
7

SYNOPSIS

9         use Log::Log4perl::Appender::String;
10
11         my $appender = Log::Log4perl::Appender::String->new(
12             name      => 'my string appender',
13         );
14
15             # Append to the string
16         $appender->log(
17             message => "I'm searching the city for sci-fi wasabi\n"
18         );
19
20             # Retrieve the result
21         my $result = $appender->string();
22
23             # Reset the buffer to the empty string
24         $appender->string("");
25

DESCRIPTION

27       This is a simple appender used internally by "Log::Log4perl". It
28       appends messages to a scalar instance variable.
29
31       Copyright 2002-2009 by Mike Schilli <m@perlmeister.com> and Kevin Goess
32       <cpan@goess.org>.
33
34       This library is free software; you can redistribute it and/or modify it
35       under the same terms as Perl itself.
36
37
38
39perl v5.12.2                      2010-08-31               Appender::String(3)
Impressum