| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Egg::Log::STDERR; |
|
2
|
|
|
|
|
|
|
# |
|
3
|
|
|
|
|
|
|
# Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt> |
|
4
|
|
|
|
|
|
|
# |
|
5
|
|
|
|
|
|
|
# $Id: STDERR.pm 337 2008-05-14 12:30:09Z lushe $ |
|
6
|
|
|
|
|
|
|
# |
|
7
|
1
|
|
|
1
|
|
371
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
36
|
|
|
8
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
1
|
|
|
|
1
|
|
|
|
|
253
|
|
|
9
|
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
our $VERSION= '3.01'; |
|
11
|
|
|
|
|
|
|
|
|
12
|
0
|
|
|
0
|
1
|
|
sub new { bless [], $_[0] } |
|
13
|
|
|
|
|
|
|
|
|
14
|
0
|
|
|
0
|
1
|
|
sub error { shift; _print('ERROR' , @_) } |
|
|
0
|
|
|
|
|
|
|
|
15
|
0
|
|
|
0
|
1
|
|
sub debug { shift; _print('DEBUG' , @_) } |
|
|
0
|
|
|
|
|
|
|
|
16
|
0
|
|
|
0
|
1
|
|
sub info { shift; _print('INFO' , @_) } |
|
|
0
|
|
|
|
|
|
|
|
17
|
0
|
|
|
0
|
1
|
|
sub notice { shift; _print('NOTICE', @_) } |
|
|
0
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub _print { |
|
20
|
0
|
|
|
0
|
|
|
my $lebel= shift; |
|
21
|
0
|
0
|
|
|
|
|
my $msg= $_[0] ? ($_[1] ? join("\n", @_): $_[0]): 'N/A'; |
|
|
|
0
|
|
|
|
|
|
|
22
|
0
|
0
|
|
|
|
|
$msg.= "\n" unless $msg=~m{\n$}; |
|
23
|
0
|
|
|
|
|
|
print STDERR "${lebel}: $msg"; |
|
24
|
|
|
|
|
|
|
} |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 NAME |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
Egg::Log::STDERR - Log message is output to STDERR. |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
The log message is output to STDERR. |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
The object of this module can be acquired in the log method of the project object. |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
my $log= $project->log; |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 METHODS |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 new |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
Constructor. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head2 error ([MESSAGE_STR]) |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
MESSAGE_STR is output putting up ERROR to the head. |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 debug ([MESSAGE_STR]) |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
MESSAGE_STR is output putting up DEBUG to the head. |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head2 info ([MESSAGE_STR]) |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
MESSAGE_STR is output putting up INFO to the head. |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 notice ([MESSAGE_STR]) |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
MESSAGE_STR is output putting up NOTES to the head. |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
L<Egg::Release>, |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 AUTHOR |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Masatoshi Mizuno E<lt>lusheE<64>cpan.orgE<gt> |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Copyright (C) 2008 Bee Flag, Corp. E<lt>L<http://egg.bomcity.com/>E<gt>. |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
|
77
|
|
|
|
|
|
|
it under the same terms as Perl itself, either Perl version 5.8.6 or, |
|
78
|
|
|
|
|
|
|
at your option, any later version of Perl 5 you may have available. |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |
|
81
|
|
|
|
|
|
|
|