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 SEE ALSO 60 61=head1 AUTHOR 62 63Kevin Goess, <cpan@goess.org> 64Mike Schilli, <m@perlmeister.com> 65 66=cut 67