Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Log::Dispatch::ConfiguUserrContributed PerLog::Dispatch::Configurator::YAML(3)

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

SYNOPSIS
	 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
       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
       Log::Dispatch::Configurator::AppConfig, Log::Dispatch::Config,
       AppConfig

AUTHOR
       Florian Merges <fmerges@cpan.org>

COPYRIGHT AND LICENSE
       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.

perl v5.32.0			  2007-09-Log::Dispatch::Configurator::YAML(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Log::Dispatch::Configurator::YAML&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help