Cataly...ispatch(3pm)
π NAME π
Okay bestie, gather round, because Catalyst::Plugin::Log::Dispatch is literally the plugin that lets your Catalyst app log stuff through Log::Dispatch. That's it, that's the vibe. It's a Perl module page (section 3pm, if you're keeping score β¨) and it's giving "your app talks, the logger listens." π
β¨ VERSION β¨
This doc is describing Catalyst::Plugin::Log::Dispatch version 2.15. No cap. π«Ά
πΈ SYNOPSIS πΈ
First things first, you gotta pull the plugin into your app:
package MyApp;
use Catalyst qw/Log::Dispatch/;
Then you can set up your config right in the source code, like:
MyApp->config->{ Log::Dispatch } = [
{
class => 'File',
name => 'file',
min_level => 'debug',
filename => MyApp->path_to('debug.log'),
format => '[%p] %m %n',
}];
Orrr you can do it in myapp.yml, if YAML is more your era:
Log::Dispatch:
- class: File
name: file
min_level: debug
filename: __path_to(debug.log)__
mode: append
format: '[%p] %m %n'
π¨ Important bestie alert: if you're usingCatalyst::Plugin::ConfigLoader, you have to load this module afterCatalyst::Plugin::ConfigLoader. Order matters, periodt. The way that sequencing just is the whole thing. π
π¦ DESCRIPTION π¦
Catalyst::Plugin::Log::Dispatch is a plugin, and its one job β its whole main character arc β is to let you use Log::Dispatch from inside Catalyst. Iconic. No notes. π
π CONFIGURATION π
The config here is the same as the configuration of Log::Dispatch, with two little exceptions β it excludes "class" and "format". Those two get their own special treatment, so let's talk about them:
classβ this is the class name pointing at yourLog::Dispatch::*object. And here's the cute part: you just specify the name that comes right after"Log::Dispatch::"in the class name. Don't type the whole thing, just the tail end. π£formatβ this one works exactly the same as the format option ofLog::Dispatch::Config. Same energy, same behavior, zero surprises. π
π§ DEPENDENCIES π§
You're gonna need these in your life:
CatalystLog::DispatchLog::Dispatch::Config
π AUTHOR π
Shota Takayama <shot[at]bindstorm.jp> β the actual legend behind this. Shoutout. π
π LICENCE AND COPYRIGHT π
Copyright (c) 2006, Shota Takayama "<shot[at]bindstorm.jp>". All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
And that's the whole page, bestie β this doc was generated by perl v5.34.0 on 2022-06-09, and it's the Cataly...ispatch(3pm) page in all its glory. Go forth and log responsibly. π«Άβ¨π
π¦ where this page comes from
- debian bookworm: libcatalyst-plugin-log-dispatch-perl 0.121-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatalyst-plugin-log-dispatch-perl 0.121-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatalyst-plugin-log-dispatch-perl 0.121-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-plugin-log-dispatch-perl 0.121-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-plugin-log-dispatch-perl 0.121-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms