line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package XAS::Lib::Log::Console; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
use XAS::Class |
6
|
1
|
|
|
|
|
5
|
version => $VERSION, |
7
|
|
|
|
|
|
|
base => 'XAS::Base', |
8
|
|
|
|
|
|
|
utils => ':validation', |
9
|
|
|
|
|
|
|
constants => 'HASHREF', |
10
|
1
|
|
|
1
|
|
699
|
; |
|
1
|
|
|
|
|
2
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
13
|
|
|
|
|
|
|
# Public Methods |
14
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub output { |
17
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
18
|
0
|
|
|
|
|
|
my ($args) = validate_params(\@_, [ |
19
|
|
|
|
|
|
|
{ type => HASHREF } |
20
|
|
|
|
|
|
|
]); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
warn sprintf("%-5s - %s\n", |
23
|
|
|
|
|
|
|
uc($args->{'priority'}), |
24
|
0
|
|
|
|
|
|
$args->{'message'} |
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
30
|
|
|
|
|
|
|
# Private Methods |
31
|
|
|
|
|
|
|
# ---------------------------------------------------------------------- |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |