Dai Okabayashi > Log-Dispatch-Configurator-Perl-0.0131 > Log::Dispatch::Configurator::Perl

Download:
Log-Dispatch-Configurator-Perl-0.0131.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.0131   Source   Latest Release: Log-Dispatch-Configurator-Perl-0.0132

NAME ^

Log::Dispatch::Configurator::Perl - Configurator implementation with Perl Code Style

SYNOPSIS ^

  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;

DESCRIPTION ^

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 %%',
        },
    }

AUTHOR ^

Dai Okabayashi <bayashi@cpan.org>

SEE ALSO ^

Log::Dispatch::Configurator::AppConfig, Log::Dispatch::Config, AppConfig

LICENSE ^

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

syntax highlighting: