Log::Dispatch::Log::Syslog::Fast - Log::Dispatch wrapper around Log::Syslog::Fast
version 1.02
use Log::Dispatch; my $log = Log::Dispatch->new( outputs => [ [ 'Log::Syslog::Fast', min_level => 'info', name => 'Yadda yadda' ] ] ); $log->emerg("Time to die.");
This module provides a simple object for sending messages to a syslog daemon via UDP, TCP, or UNIX socket.
The constructor takes the following parameters in addition to the standard parameters documented in Log::Dispatch::Output:
transport ($)
The transport mechanism to use: one of 'udp', 'tcp', or 'unix'.
host ($)
For UDP and TCP, the hostname or IPv4 or IPv6 address. For UNIX, the socket path. Defaults to 'localhost'.
port ($)
The listening port of the syslogd (ignored for unix sockets). See Log::Syslog::Fast. Defaults to 514.
facility ($)
The log facility to use. See Log::Syslog::Constants. Defaults to 'user'.
severity ($)
The log severity to use. See Log::Syslog::Constants. Defaults to 'info'.
sender ($)
The system name to claim as the source of the message. Defaults to the system's hostname.
name ($)
The name of the application. Defaults to $0.
Adam Thomason <athomason@cpan.org>
This software is copyright (c) 2012 by Adam Thomason.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Log::Dispatch::Log::Syslog::Fast, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Dispatch::Log::Syslog::Fast
CPAN shell
perl -MCPAN -e shell install Log::Dispatch::Log::Syslog::Fast
For more information on module installation, please visit the detailed CPAN module installation guide.