1Net::Stomp::StupidLoggeUrs(e3r)Contributed Perl DocumentNaetti:o:nStomp::StupidLogger(3)
2
3
4

NAME

6       Net::Stomp::StupidLogger - stub logger
7

DESCRIPTION

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       Net::Stomp used to use this, but now it just uses Log::Any, so this
15       package is here just in case someone else was using it.
16

METHODS

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

AUTHORS

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.34.0                      2021-09-23       Net::Stomp::StupidLogger(3)
Impressum