Log::D...cheLog(3pm)

πŸ’– Log::Dispatch::ApacheLog β€” the perl one πŸ’–

okay bestie, welcome to Log::Dispatch::ApacheLog (it's a 3pm page, so like, a Perl module, iykyk) πŸŽ€


✨ NAME ✨

Log::Dispatch::ApacheLog β€” it's literally an Object for logging to Apache::Log objects. that's the whole vibe. πŸ’…


🌸 VERSION 🌸

version 2.71 β€” yeah she's on 2.71, no cap ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the moment you've been waiting for, the actual code:

use Log::Dispatch;

my $log = Log::Dispatch->new(
    outputs => [
        [ 'ApacheLog', apache => $r ],
    ],
);

$log->emerg('Kaboom');

see how easy that was?? $log->emerg('Kaboom') β€” iconic. main character energy fr fr πŸ’₯


πŸ’œ DESCRIPTION πŸ’œ

so basically this module lets you pass your messages straight to Apache's log object, which is represented by the Apache::Log class. that's it. that's the whole job. she's a little relay, a little messenger fairy 🧚 passing your logs along. obsessed.


πŸ‘‘ CONSTRUCTOR πŸ‘‘

okay so when you build one of these, the constructor takes the following parameters in addition to the standard parameters documented in Log::Dispatch::Output (go read that one too, bestie, don't skip it πŸ™ˆ).

  • apache ($) β€” an object of either the Apache or Apache::Server classes. Required. like, you literally cannot skip this one, it's non-negotiable πŸ’€

🫢 SUPPORT 🫢

found a bug? a little oopsie? a glitch in the matrix? 😭 you can submit bugs at <https://github.com/houseabsolute/Log-Dispatch/issues> β€” the devs are listening, periodt.


🌈 SOURCE 🌈

the source code repository for Log-Dispatch lives at <https://github.com/houseabsolute/Log-Dispatch> if you wanna go snoop around and read the whole thing yourself. lowkey a good time. πŸ”₯


⭐ AUTHOR ⭐

Dave Rolsky <autarch@urth.org> β€” thank you king, we appreciate you πŸ’–


This software is Copyright (c) 2023 by Dave Rolsky.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)

The full text of the license can be found in the LICENSE file included with this distribution. read it, bestie, it's giving responsible citizen 🌸


ok that's the whole page, go forth and log responsibly 🫑

and that's a wrap, babe!! πŸŽ€ this was perl v5.36.0, dated 2023-06-11, and the page you just read was Log::Dispatch::ApacheLog(3pm) πŸ’– slay, bye πŸ’…βœ¨

πŸ“¦ where this page comes from