Lines 52-63
Koha::Logger::Mojo
Link Here
|
52 |
=head1 DESCRIPTION |
52 |
=head1 DESCRIPTION |
53 |
|
53 |
|
54 |
Use Log4perl on Mojolicious with the help of MojoX::Log::Log4perl. |
54 |
Use Log4perl on Mojolicious with the help of MojoX::Log::Log4perl. |
|
|
55 |
|
55 |
=cut |
56 |
=cut |
56 |
|
57 |
|
57 |
use Modern::Perl; |
58 |
use Modern::Perl; |
58 |
|
59 |
|
59 |
use base 'MojoX::Log::Log4perl'; |
60 |
use base 'MojoX::Log::Log4perl'; |
60 |
|
61 |
|
|
|
62 |
=head2 Class methods |
63 |
|
64 |
=cut |
65 |
|
66 |
=head3 get |
67 |
|
68 |
Create a logger |
69 |
|
70 |
=cut |
71 |
|
61 |
sub get { |
72 |
sub get { |
62 |
my ($class, $params) = @_; |
73 |
my ($class, $params) = @_; |
63 |
|
74 |
|
Lines 79-84
sub get {
Link Here
|
79 |
return $self; |
90 |
return $self; |
80 |
} |
91 |
} |
81 |
|
92 |
|
|
|
93 |
=head2 Internal methods |
94 |
|
95 |
=cut |
96 |
|
82 |
=head3 _get_logger |
97 |
=head3 _get_logger |
83 |
|
98 |
|
84 |
Overloads MojoX::Log::Log4perl::_get_logger by optionally including interface |
99 |
Overloads MojoX::Log::Log4perl::_get_logger by optionally including interface |
85 |
- |
|
|