Net::Stomp::StupidLogger(3pm)

Net::Stomp::StupidLogger3pm

Stub logger

Overview

This class implements a very simple logger-like object, that just delegates to carp.

By default, it logs at "warn" and above.

Net::Stomp used to use this, but now it just uses Log::Any, so this package is here just in case someone else was using it.

Methods

new

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

debug

info

warn

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.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9–10
  3. 11
  4. 12
  5. 13

Authors

Gianni Ceccarelli <[email protected]>

From libnet-stomp-perl 0.62-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.