File Coverage

blib/lib/Log/Log4perl/Layout/NoopLayout.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition 1 3 33.3
subroutine 2 2 100.0
pod 0 2 0.0
total 9 13 69.2


line stmt bran cond sub pod time code
1             ##################################################
2             ##################################################
3              
4              
5             ##################################################
6             ##################################################
7             my $class = shift;
8             $class = ref ($class) || $class;
9 8     8 0 14  
10 8   33     30 my $self = {
11             format => undef,
12 8         22 info_needed => {},
13             stack => [],
14             };
15              
16             bless $self, $class;
17              
18 8         15 return $self;
19             }
20 8         24  
21             ##################################################
22             ##################################################
23             #my($self, $message, $category, $priority, $caller_level) = @_;
24             return $_[1];;
25             }
26              
27 13     13 0 28 1;
28              
29              
30             =encoding utf8
31              
32             =head1 NAME
33              
34             Log::Log4perl::Layout::NoopLayout - Pass-thru Layout
35              
36             =head1 SYNOPSIS
37              
38             use Log::Log4perl::Layout::NoopLayout;
39             my $layout = Log::Log4perl::Layout::NoopLayout->new();
40              
41             =head1 DESCRIPTION
42              
43             This is a no-op layout, returns the logging message unaltered,
44             useful for implementing the DBI logger.
45              
46             =head1 LICENSE
47              
48             Copyright 2002-2013 by Mike Schilli E<lt>m@perlmeister.comE<gt>
49             and Kevin Goess E<lt>cpan@goess.orgE<gt>.
50              
51             This library is free software; you can redistribute it and/or modify
52             it under the same terms as Perl itself.
53              
54             =head1 AUTHOR
55              
56             Please contribute patches to the project on Github:
57              
58             http://github.com/mschilli/log4perl
59              
60             Send bug reports or requests for enhancements to the authors via our
61              
62             MAILING LIST (questions, bug reports, suggestions/patches):
63             log4perl-devel@lists.sourceforge.net
64              
65             Authors (please contact them via the list above, not directly):
66             Mike Schilli <m@perlmeister.com>,
67             Kevin Goess <cpan@goess.org>
68              
69             Contributors (in alphabetical order):
70             Ateeq Altaf, Cory Bennett, Jens Berthold, Jeremy Bopp, Hutton
71             Davidson, Chris R. Donnelly, Matisse Enzer, Hugh Esco, Anthony
72             Foiani, James FitzGibbon, Carl Franks, Dennis Gregorovic, Andy
73             Grundman, Paul Harrington, Alexander Hartmaier David Hull,
74             Robert Jacobson, Jason Kohles, Jeff Macdonald, Markus Peter,
75             Brett Rann, Peter Rabbitson, Erik Selberg, Aaron Straup Cope,
76             Lars Thegler, David Viner, Mac Yang.
77