Locale:...:Logger(3)
π Locale::TextDomain::OO::Role::Logger π
okay bestie, so this is a User Contributed Perl Documentation page and it's literally all about Locale::TextDomain::OO::Role::Logger β the role that hands you a logger method. yes. that's the whole vibe. π¦
$Id: Logger.pm 651 2017-05-31 18:10:43Z steffenw $
$HeadURL:
svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Role/Logger.pm
$
β¨ VERSION β¨
1.027 bestie. that's the version. remember it, it's giving iconic π
πΈ DESCRIPTION πΈ
This module provides a logger method for for Locale::TextDomain:OO.
(yes the original says "for for" and yes we are keeping it, no cap, character for character π«Ά)
π SYNOPSIS π
okay so here's how you actually do the thing:
use Log::Any qw($log);
with qw(
Locale::TextDomain::OO::Role::Logger
);
ate. periodt. π
π SUBROUTINES/METHODS π
π§ method logger
Store logger code to get some information what lexicon is used or why the translation process is using a fallback.
like, you're literally stashing a code ref in there so future-you can find out which lexicon got used, or why the translation process is out here using a fallback. investigative journalism but make it perl π₯
$lexicon_hash->logger(
sub {
my ($message, $arg_ref) = @_;
my $type = $arg_ref->{type};
$log->$type($message);
return;
},
);
and $arg_ref contains:
object => $self, # the object itself
type => 'debug', # the log category
event => 'lexicon,load', # event category
so object is the object itself (it said what it said π), type is the log category, and event is the event category. copy that down bestie, it's on the test π
Get back
$code_ref_or_undef = $self->logger;
you get back a $code_ref_or_undef. could be a code ref. could be undef. the suspense is lowkey the whole point β¨
π EXAMPLE π
Inside of this distribution is a directory named example. Run this *.pl files.
like, the example directory is right there inside the distribution. go run those *.pl files. they're waiting for you. main character energy, honestly π
π DIAGNOSTICS π
nothing
(iconic of it, truly nothing to report π)
πΈ CONFIGURATION AND ENVIRONMENT πΈ
none
(no config, no env vars, nothing to set up, we love a low-maintenance queen π)
π¦ DEPENDENCIES π¦
Moo::RoleMooX::Types::MooseLike::Base
that's the whole guest list, bestie π
π INCOMPATIBILITIES π
not known
(translation: nothing's beefing with it as far as anyone can tell π)
π BUGS AND LIMITATIONS π
none
(no bugs. no limitations. we are simply thriving π)
β SEE ALSO β
Locale::TextDoamin::OO
okay bestie real talk β yes, that's spelled TextDoamin in the original and we are keeping it exactly like that. do not "fix" it. we do not touch the sacred typos. π«Ά
π AUTHOR π
Steffen Winkler
(the legend themself π)
π LICENSE AND COPYRIGHT π
Copyright (c) 2013 - 2017, Steffen Winkler "<steffenw at cpan.org>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
slay. free software, same terms as Perl itself, we love to see it π
and that's the whole page bestie!! this was generated by perl v5.42.0 on 2025-07-25, and it was the Locale:...:Logger(3) page all along β go forth and log your lexicon choices, you absolute icon πβ¨π
π¦ where this page comes from
- fedora 43: perl-Locale-TextDomain-OO 1.036-19.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms