Log::Dispatch::Code man page on Alpinelinux

Man page or keyword search:  
man Server   18016 pages
apropos Keyword Search (all sections)
Output format
Alpinelinux logo
[printable version]

Log::Dispatch::Code(3)User Contributed Perl DocumentatioLog::Dispatch::Code(3)

NAME
       Log::Dispatch::Code - Object for logging to a subroutine reference

VERSION
       version 2.41

SYNOPSIS
	 use Log::Dispatch;

	 my $log = Log::Dispatch->new(
	     outputs => [
		 [
		     'Code',
		     min_level => 'emerg',
		     code      => \&_log_it,
		 ],
	     ]
	 );

	 sub _log_it {
	     my %p = @_;

	     warn $p{message};
	 }

DESCRIPTION
       This module supplies a simple object for logging to a subroutine
       reference.

CONSTRUCTOR
       The constructor takes the following parameters in addition to the
       standard parameters documented in Log::Dispatch::Output:

       ·   code ($)

	   The subroutine reference.

HOW IT WORKS
       The subroutine you provide will be called with a hash of named
       arguments. The two arguments are:

       ·   level

	   The log level of the message. This will be a string like "info" or
	   "error".

       ·   message

	   The message being logged.

AUTHOR
       Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE
       This software is Copyright (c) 2013 by Dave Rolsky.

       This is free software, licensed under:

	 The Artistic License 2.0 (GPL Compatible)

perl v5.18.2			  2013-07-22		Log::Dispatch::Code(3)
[top]

List of man pages available for Alpinelinux

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net