SVK::Logger(3)

πŸ“¦
version 2.2.3 Β· 2 versions
, in fedora 43

πŸ’– SVK::Logger πŸ’–

okay bestie, welcome to the manual page for SVK::Logger β€” it's a Perl module, it's part of the User Contributed Perl Documentation situation, and it lives at section 3 of the manual. it's giving "logging but make it cute." let's go πŸ¦‹


✨ NAME ✨

SVK::Logger β€” a whole logging framework for SVK, no cap 🌸


πŸŽ€ SYNOPSIS πŸŽ€

so you start like this:

use SVK::Logger;

$logger->warn('foo');
$logger->info('bar');

orrr, if you wanna be extra and name your own variable:

use SVK::Logger '$foo';

$foo->error('bad thingimajig');

periodt. that's the whole vibe. πŸ’…


🌈 DESCRIPTION 🌈

okay so here's the tea: SVK::Logger is a wrapper around Log::Log4perl. it's not doing anything wild on its own, it's just making Log4perl comfy to use inside SVK 🫢

the way it works is so nice β€” when you use the module, it imports a variable into your namespace called $logger. and bestie, if $logger isn't the name you want? you can literally pass a variable name at import time and it'll decide what the variable should be called instead. main character energy, honestly πŸ‘‘

and the category on that logger? it's based on the name of the calling module. iykyk. that means your logs automatically know where they came from without you lifting a finger ✨


πŸ”₯ MOTIVATION πŸ”₯

ngl, this whole thing exists for support requests, and it's lowkey genius.

the dream scenario is this: something isn't going the way it should, and instead of playing twenty questions with someone, you can just tell them:

"rerun the command with the SVKLOGLEVEL environment variable set to DEBUG and mail the output to $SUPPORTADDRESS"

and on Unix?? bestie, that's ONE command. one. single. command. iconic:

env SVKLOGLEVEL=DEBUG svk <command that failed> 2>&1 | mail $SUPPORTADDRESS

ate. πŸ’€ like, imagine debugging being that easy. obsessed.


and that's the whole page, bestie πŸ’œ this one came from the perl v5.42.0 docs, dated 2025-07-25 β€” so when you're out here logging your little heart out, just know that's who's responsible for this masterpiece πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from