1Net::Stomp::StupidLoggeUrs(e3r)Contributed Perl DocumentNaetti:o:nStomp::StupidLogger(3)
2
3
4
6 Net::Stomp::StupidLogger - stub logger
7
9 This class implements a very simple logger-like object, that just
10 delegates to carp.
11
12 By default, it logs at "warn" and above.
13
14 You should pass a real logger object to Net::Stomp if you want any
15 other behaviour.
16
18 new
19 Constructor. You can pass a hashref with the log levels to enable /
20 disable, like:
21
22 Net::Stomp::StupidLogger->new({debug=>1}); # logs debug, warn,
23 # error, fatal
24
25 Net::Stomp::StupidLogger->new({warn=>0}); # logs error, fatal
26
27 debug
28 info
29 warn
30 error
31 fatal
32 $logger->warn('some',$message);
33
34 If the corresponding level is enabled, joins the arguments in a single
35 string (no spaces added) and calls carp.
36
38 Gianni Ceccarelli <dakkar@thenautilus.net>
39
41 This module is free software; you can redistribute it or modify it
42 under the same terms as Perl itself.
43
44
45
46perl v5.28.0 2018-07-15 Net::Stomp::StupidLogger(3)