blib/lib/XAS/Apps/Logger.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
setup
2.0
main
2.0
BEGIN
2.0
CRAP 2.0
1 package XAS::Apps::Logger;
2  
3 use Try::Tiny;
4 use XAS::Class
5 debug => 0,
6 version => '0.02',
7 base => 'XAS::Lib::App',
8 ;
9  
10 #use Data::Dumper;
11  
12 # ----------------------------------------------------------------------
13 # Public Methods
14 # ----------------------------------------------------------------------
15  
16 sub setup {
17 my $self = shift;
18  
19 }
20  
21 sub main {
22 my $self = shift;
23  
24 $self->setup();
25  
26 $self->log->info('starting up');
27 $self->log->level('debug', 1);
28 $self->log->debug('heh debugging is working');
29 $self->log->trace('tracing is working');
30  
31 sleep(10);
32  
33 $self->log->info('shutting down');
34  
35 }
36  
37 # ----------------------------------------------------------------------
38 # Private Methods
39 # ----------------------------------------------------------------------
40  
41 1;
42  
43 __END__
44  
45 =head1 NAME
46  
47 XAS::Apps::Logger - A test for logging
48  
49 =head1 SYNOPSIS
50  
51 use XAS::Apps::Logger;
52  
53 my $app = XAS::Apps::Logger->new();
54  
55 exit $app->run();
56  
57 =head1 DESCRIPTION
58  
59 This module is a test for logging.
60  
61 =head1 SEE ALSO
62  
63 =over 4
64  
65 =item L<XAS|XAS>
66  
67 =back
68  
69 =head1 AUTHOR
70  
71 Kevin L. Esteb, E<lt>kevin@kesteb.usE<gt>
72  
73 =head1 COPYRIGHT AND LICENSE
74  
75 Copyright (C) 2014 Kevin L. Esteb
76  
77 This library is free software; you can redistribute it and/or modify
78 it under the same terms as Perl itself, either Perl version 5.8.8 or,
79 at your option, any later version of Perl 5 you may have available.
80  
81 See L<http://dev.perl.org/licenses/> for more information.
82  
83 =cut