Log module of catalyst that uses log::dispatch
This document describes Catalyst::Plugin::Log::Dispatch version 2.15
package MyApp; use Catalyst qw/Log::Dispatch/;
configuration in source code
MyApp->config->{ Log::Dispatch } = [ { class => 'File', name => 'file', min_level => 'debug', filename => MyApp->path_to('debug.log'), format => '[%p] %m %n', }];
in myapp.yml
Log::Dispatch: - class: File name: file min_level: debug filename: _\|_path_to(debug.log)_\|_ mode: append format: '[%p] %m %n'
If you use Catalyst::Plugin::ConfigLoader, please load this module after Catalyst::Plugin::ConfigLoader.
Catalyst::Plugin::Log::Dispatch is a plugin to use Log::Dispatch from Catalyst.
It is same as the configuration of Log::Dispatch excluding \*(L"class\*(R" and \*(L"format\*(R".
The class name to Log::Dispatch::* object. Please specify the name just after \*(L"Log::Dispatch::\*(R" of the class name.
It is the same as the format option of Log::Dispatch::Config.
Catalyst, Log::Dispatch, Log::Dispatch::Config
Shota Takayama \*(C`<shot[at]bindstorm.jp>\*(C'
Copyright (c) 2006, Shota Takayama \*(C`<shot[at]bindstorm.jp>\*(C'. 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.