Net::S...Logger(3pm)

πŸ“¦
version 0.62 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Net::Stomp::StupidLogger β€” a stub logger, bestie πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: a logger-ish object that's literally the simplest thing ever. It's logger-like, it's very simple, and all it does is delegate to carp. that's the whole vibe. that's it. 🫢

By default, it logs at "warn" and above. so like, warn, error, fatal β€” the whole serious-girl lineup.

and now the lore πŸ“: Net::Stomp used to use this, but now it just uses Log::Any instead. so this package is just sitting here, minding its own business, existing purely just in case someone else out there was still using it. it's giving "kept around for the fans." not abandoned, just retired-but-on-call. πŸ˜­πŸ‘‘


🌸 METHODS 🌸

πŸ’– new

Constructor, bb. You can pass a hashref with the log levels you wanna enable / disable, like this:

Net::Stomp::StupidLogger->new({debug=>1}); # logs debug, warn,
                                           # error, fatal

Net::Stomp::StupidLogger->new({warn=>0}); # logs error, fatal

so debug=>1 turns debug on (and everything above it comes along for the ride: warn, error, fatal) ✨ and warn=>0 switches warn off, leaving you with error and fatal. iconic level-toggling behaviour, no notes.

πŸ’œ debug

πŸ’œ info

πŸ’œ warn

πŸ’œ error

πŸ’œ fatal

these five are the actual logging methods, and they all work the same way:

$logger->warn('some',$message);

If the corresponding level is enabled, it joins the arguments into a single string β€” and heads up, no spaces are added, so whatever spacing you want, you gotta put it in yourself, bestie πŸ™ˆ β€” and then it calls carp.

fr fr, no spaces added is doing a lot of work in that sentence. don't come for me when your message looks like somemessage, the manpage literally told you. πŸ’€

πŸ‘‘ AUTHORS πŸ‘‘

Gianni Ceccarelli <dakkar@thenautilus.net>


This module is free software; you can redistribute it or modify it under the same terms as Perl itself.


and that's the whole page, bestie!! πŸ¦‹πŸŒΈπŸ’– this little queen was documented as part of the User Contributed Perl Documentation, running on perl v5.38.2, with a date stamp of 2024-02-24. slay, stay logging, periodt βœ¨πŸ’…πŸŒˆ

πŸ“¦ where this page comes from