blib/lib/XAS/Apps/Logger.pm

filter: Statementstmt 43.7% 7 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 2 / 4 Podpod 50.0% 1 / 2 totaltotal 45.4% 10 / 22 CC 1 SCAR 4.1
CC
1
Cov
44%
setup
2.0
main
2.0
BEGIN
1.0
CRAP 1.5
« blib/lib/XAS/Lib/Modules/Log/Syslog.pm ↑ Summary blib/lib/XAS/Apps/Test/Echo/Server.pm »
1 package XAS::Apps::Logger;
2  
3 1 ▶use Try::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 use XAS::Class
5 1 debug => 0,
6 version => '0.02',
7 base => 'XAS::Lib::App',
8 1 ▶;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 #use Data::Dumper;
11  
12 # ----------------------------------------------------------------------
13 # Public Methods
14 # ----------------------------------------------------------------------
15  
16 sub setup {
17 0 ▶ my $self = shift;
Subroutine setup: not called CC=1 SCAR=6.9
Pod undocumented
18  
19 }
20  
21 sub main {
22 0 ▶ my $self = shift;
Subroutine main: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 $self->setup();
25  
26 0 $self->log->info('starting up');
27 0 $self->log->level('debug', 1);
28 0 $self->log->debug('heh debugging is working');
29 0 $self->log->trace('tracing is working');
30  
31 0 sleep(10);
32  
33 0 $self->log->info('shutting down');
34  
35 }
36  
37 # ----------------------------------------------------------------------
38 # Private Methods
39 # ----------------------------------------------------------------------
40  
41 1 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 TThis is free software; you can redistribute it and/or modify it under
78 the terms of the Artistic License 2.0. For details, see the full text
79 of the license at http://www.perlfoundation.org/artistic_license_2_0.
80  
81 =cut
« blib/lib/XAS/Lib/Modules/Log/Syslog.pm ↑ Summary blib/lib/XAS/Apps/Test/Echo/Server.pm »