Tiny(3pm)
π Tiny(3pm) β MojoX::Log::Log4perl::Tiny π
okay bestie, so this is a page from the User Contributed Perl Documentation, and it's literally just one tiny little module. it's giving "small but mighty". let's get into it π¦
β¨ NAME β¨
MojoX::Log::Log4perl::Tiny β a Minimalistic Log4perl adapter for Mojolicious. that's the whole vibe. tiny name, tiny job, does it perfectly π
πΈ SYNOPSIS πΈ
here's the whole thing, no cap:
use MojoX::Log::Log4perl::Tiny;
# In your $app->setup...
$app->log(
MojoX::Log::Log4perl::Tiny->new(
logger => Log::Log4perl->get_logger('MyLogger')
)
);
see how chill that is?? you just use it, and then inside your $app->setup you hand it to $app->log. done. iconic behavior β¨
π DESCRIPTION π
so here's the tea: MojoX::Log::Log4perl::Tiny lets you swap out Mojolicious's default logging, aka Mojo::Log, and drop in your existing Log::Log4perl::Logger instance instead. that's it. that's the module. lowkey a genius move fr fr π«Ά
π METHODS π
π new(Hash %args) returns MojoX::Log::Log4perl::Tiny
this creates and returns an instance that you use to replace Mojolicious->log. main character energy, honestly.
here are the args it takes:
loggerβ aLog::Log4perl::Loggerinstance. Required. like, genuinely required, bestie, don't skip this one πlevelβ the minimum log level for logging. default is"debug"πmax_history_sizeβ the max history size for logs that get shown onexception.html.ep. default is5β¨
π§ LICENSE π§
Copyright (C) yowcow. π
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay.
π AUTHOR π
yowcow <yowcow@cpan.org> β the icon who wrote this π«Ά
and that's the whole page, babes!! this one shipped with perl v5.42.0, dated 2025-07-25, and the page title is Tiny(3pm) β go forth and log responsibly π β¨πΈ
π¦ where this page comes from
- fedora 43: perl-MojoX-Log-Log4perl-Tiny 0.01-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