1package Log::Log4perl::Layout; 2 3 4use Log::Log4perl::Layout::SimpleLayout; 5use Log::Log4perl::Layout::PatternLayout; 6use Log::Log4perl::Layout::PatternLayout::Multiline; 7 8 9#################################################### 10sub appender_name { 11#################################################### 12 my ($self, $arg) = @_; 13 14 if ($arg) { 15 die "setting appender_name unimplemented until it makes sense"; 16 } 17 return $self->{appender_name}; 18} 19 20 21################################################## 22sub define { 23################################################## 24 ; #subclasses may implement 25} 26 27 28################################################## 29sub render { 30################################################## 31 die "subclass must implement render"; 32} 33 341; 35 36__END__ 37 38=head1 NAME 39 40Log::Log4perl::Layout - Log4perl Layout Virtual Base Class 41 42=head1 SYNOPSIS 43 44 # Not to be used directly, see below 45 46=head1 DESCRIPTION 47 48C<Log::Log4perl::Layout> is a virtual base class for the two currently 49implemented layout types 50 51 Log::Log4perl::Layout::SimpleLayout 52 Log::Log4perl::Layout::PatternLayout 53 54Unless you're implementing a new layout class for Log4perl, you shouldn't 55use this class directly, but rather refer to 56L<Log::Log4perl::Layout::SimpleLayout> or 57L<Log::Log4perl::Layout::PatternLayout>. 58 59=head1 LICENSE 60 61Copyright 2002-2012 by Mike Schilli E<lt>m@perlmeister.comE<gt> 62and Kevin Goess E<lt>cpan@goess.orgE<gt>. 63 64This library is free software; you can redistribute it and/or modify 65it under the same terms as Perl itself. 66 67=head1 AUTHOR 68 69Please contribute patches to the project on Github: 70 71 http://github.com/mschilli/log4perl 72 73Send bug reports or requests for enhancements to the authors via our 74 75MAILING LIST (questions, bug reports, suggestions/patches): 76log4perl-devel@lists.sourceforge.net 77 78Authors (please contact them via the list above, not directly): 79Mike Schilli <m@perlmeister.com>, 80Kevin Goess <cpan@goess.org> 81 82Contributors (in alphabetical order): 83Ateeq Altaf, Cory Bennett, Jens Berthold, Jeremy Bopp, Hutton 84Davidson, Chris R. Donnelly, Matisse Enzer, Hugh Esco, Anthony 85Foiani, James FitzGibbon, Carl Franks, Dennis Gregorovic, Andy 86Grundman, Paul Harrington, David Hull, Robert Jacobson, Jason Kohles, 87Jeff Macdonald, Markus Peter, Brett Rann, Peter Rabbitson, Erik 88Selberg, Aaron Straup Cope, Lars Thegler, David Viner, Mac Yang. 89 90