File Coverage

blib/lib/Log/Log4perl/Layout.pm
Criterion Covered Total %
statement 9 14 64.2
branch 0 2 0.0
condition n/a
subroutine 3 6 50.0
pod 0 3 0.0
total 12 25 48.0


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