1Appender::String(3) User Contributed Perl Documentation Appender::String(3)
2
3
4
6 Log::Log4perl::Appender::String - Append to a string
7
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
27 This is a simple appender used internally by "Log::Log4perl". It
28 appends messages to a scalar instance variable.
29
31 Copyright 2002-2013 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
38 Please contribute patches to the project on Github:
39
40 http://github.com/mschilli/log4perl
41
42 Send bug reports or requests for enhancements to the authors via our
43
44 MAILING LIST (questions, bug reports, suggestions/patches):
45 log4perl-devel@lists.sourceforge.net
46
47 Authors (please contact them via the list above, not directly): Mike
48 Schilli <m@perlmeister.com>, Kevin Goess <cpan@goess.org>
49
50 Contributors (in alphabetical order): Ateeq Altaf, Cory Bennett, Jens
51 Berthold, Jeremy Bopp, Hutton Davidson, Chris R. Donnelly, Matisse
52 Enzer, Hugh Esco, Anthony Foiani, James FitzGibbon, Carl Franks, Dennis
53 Gregorovic, Andy Grundman, Paul Harrington, Alexander Hartmaier David
54 Hull, Robert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter,
55 Brett Rann, Peter Rabbitson, Erik Selberg, Aaron Straup Cope, Lars
56 Thegler, David Viner, Mac Yang.
57
58
59
60perl v5.28.0 2017-02-21 Appender::String(3)