GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Log::Dispatch::Configurator::YAML(3) User Contributed Perl Documentation Log::Dispatch::Configurator::YAML(3)

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

  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;

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'

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

Florian Merges <fmerges@cpan.org>

Copyright (C) 2006 by Florian Merges

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.

2007-09-08 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.