Log::Dispatch::Configurator::YAML - Configurator implementation with YAML


Log-Dispatch-Configurator-YAML documentation  | view source Contained in the Log-Dispatch-Configurator-YAML distribution.

Index


NAME

Top

Log::Dispatch::Configurator::YAML - Configurator implementation with YAML

SYNOPSIS

Top

  use Log::Dispatch::Config;
  use Log::Dispatch::Configurator::YAML;

  my $config = Log::Dispatch::Configurator::YAML->new('log.yml');
  Log::Dispatch::Config->configure($config);

  # nearby piece of code
  my $log = Log::Dispatch::Config->instance;

DESCRIPTION

Top

Log::Dispatch::Configurator::YAML is an implementation of Log::Dispatch::Configurator using YAML format. Here is a sample of config file.

 ---
 dispatchers:
   - file
   - screen

 file:
   class: Log::Dispatch::File
   min_level: debug
   filename: /path/to/log
   mode: append
   format: '[%d] [%p] %m at %F line %L%n'

 screen:
   class: Log::Dispatch::Screen
   min_level: info
   stderr: 1
   format: '%m'

SEE ALSO

Top

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

AUTHOR

Top

Florian Merges <fmerges@cpan.org>

COPYRIGHT AND LICENSE

Top


Log-Dispatch-Configurator-YAML documentation  | view source Contained in the Log-Dispatch-Configurator-YAML distribution.