Log::Dispatch::Configurator::Perl - Configurator implementation with Perl Code Style
use Log::Dispatch::Config; use Log::Dispatch::Configurator::Perl; my $config = Log::Dispatch::Configurator::Perl->new('conf.pl'); Log::Dispatch::Config->configure($config); # nearby piece of code my $log = Log::Dispatch::Config->instance;
Log::Dispatch::Configurator::Perl is an implementation of Log::Dispatch::Configurator using Perl Code Style. Here is a sample of config file.
+{ dispatchers => [qw/file screen/], file => +{ class => 'Log::Dispatch::File', min_level => 'debug', filename => 't/log.out', mode => 'append', format => '[%d] [%p] %m at %F line %L', }, screen => +{ class => 'Log::Dispatch::Screen', min_level => 'info', stderr => 1, format => '%m %%', }, }
Dai Okabayashi <bayashi@cpan.org>
Log::Dispatch::Configurator::AppConfig, Log::Dispatch::Config, AppConfig
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Log::Dispatch::Configurator::Perl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Dispatch::Configurator::Perl
CPAN shell
perl -MCPAN -e shell install Log::Dispatch::Configurator::Perl
For more information on module installation, please visit the detailed CPAN module installation guide.