line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::CLI::Plugin::Log::Dispatch::Configurator::YAML; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
37
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
40
|
|
5
|
1
|
|
|
1
|
|
5
|
use base qw(Class::Accessor::Grouped); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
2707
|
|
6
|
1
|
|
|
1
|
|
18380
|
use Log::Dispatch::Config; |
|
1
|
|
|
|
|
63398
|
|
|
1
|
|
|
|
|
45
|
|
7
|
1
|
|
|
1
|
|
6885
|
use Log::Dispatch::Configurator::YAML; |
|
1
|
|
|
|
|
7282
|
|
|
1
|
|
|
|
|
222
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
__PACKAGE__->mk_group_accessors(inherited => "log"); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '1.1'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub setup { |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
0
|
|
my($self, @argv) = @_; |
16
|
0
|
|
|
|
|
|
my $config = Log::Dispatch::Configurator::YAML->new($self->config->{log_dispatch_configurator_yaml}); |
17
|
0
|
|
|
|
|
|
Log::Dispatch::Config->configure($config); |
18
|
0
|
|
|
|
|
|
$self->log(Log::Dispatch::Config->instance); |
19
|
0
|
|
|
|
|
|
$self->maybe::next::method(@argv); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
__END__ |