Tiny(3pm)

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

πŸ’– 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 β€” a Log::Log4perl::Logger instance. 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 on exception.html.ep. default is 5 ✨

🧚 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