Net::Stomp::StupidLogger(3pm) | User Contributed Perl Documentation | Net::Stomp::StupidLogger(3pm) |
Net::Stomp::StupidLogger - stub logger
This class implements a very simple logger-like object, that just delegates to carp.
By default, it logs at "warn" and above.
You should pass a real logger object to Net::Stomp if you want any other behaviour.
Constructor. You can pass a hashref with the log levels to enable / disable, like:
Net::Stomp::StupidLogger->new({debug=>1}); # logs debug, warn, # error, fatal Net::Stomp::StupidLogger->new({warn=>0}); # logs error, fatal
$logger->warn('some',$message);
If the corresponding level is enabled, joins the arguments in a single string (no spaces added) and calls carp.
Gianni Ceccarelli <dakkar@thenautilus.net>
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
2016-07-02 | perl v5.22.2 |