Parse:...:Logger(3pm)
π Parse:...:Logger β the vibe
ok so bestie, welcome to Parse::Dia::SQL::Logger, which lives in the User Contributed Perl Documentation section of your man pages (that's the 3pm energy, iykyk). She's not complicated, she's not doing too much β she's literally just a wrapper for Log::Log4perl. That's the whole gig. And honestly? She ate. π
β¨ NAME β¨
Parse::Dia::SQL::Logger β a wrapper for Log::Log4perl. π
πΈ SYNOPSIS πΈ
here's how you actually use her, no gatekeeping:
use Parse::Dia::SQL::Logger;
my $logger = Parse::Dia::SQL::Logger::->new(loglevel => 'INFO');
my $log = $logger->get_logger(__PACKAGE__);
$log->error('error');
$log->info('info');
so you use the module, you make a new logger and tell her your loglevel (in this case 'INFO'), then you grab the logger for your package with get_logger(__PACKAGE__), and then you just... log. error for the oopsies, info for the little updates. iconic behavior. β¨
π DESCRIPTION π
This module is a wrapper around Log::Log4perl. that's it, that's the thesis. she's the cute little intermediary so you don't have to talk to Log::Log4perl directly. lowkey a matchmaker. π«Ά
π¦ new
The constructor. she makes the object. she's the main character. π
π¦ get_logger
Return the logger singleton object. one logger, one vibe, shared by all. no duplicates, no drama. π
π¦ log_off
Decrease the log level on all appenders. 1
π¦ log_on
Increase the log level on all appenders.
π heads up bestie: those two are the volume knobs of your logging.log_offturns it down,log_onturns it up, and they hit every appender, so there's no sneaky hiding from it.
π the cute sign-off π
this whole thing is documented as perl v5.36.0 vibes, dated 2022-11-19, and it's filed under Parse:...:Logger(3pm) β so go forth, log responsibly, and remember: a wrapper is just a bestie with boundaries. πβπ
π¦ where this page comes from
- debian bookworm: libparse-dia-sql-perl 0.31-2 Β· GPL-2.0-or-later
- debian trixie: libparse-dia-sql-perl 0.31-2 Β· GPL-2.0-or-later
- ubuntu noble: libparse-dia-sql-perl 0.31-2 Β· GPL-2.0-or-later
- ubuntu resolute: libparse-dia-sql-perl 0.31-2 Β· GPL-2.0-or-later
- ubuntu stonking: libparse-dia-sql-perl 0.31-2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms