NAME

Log::Dispatch::Log::Syslog::Fast - Log::Dispatch wrapper around Log::Syslog::Fast

VERSION

version 1.02

SYNOPSIS

use Log::Dispatch;

my $log = Log::Dispatch->new(
    outputs => [
        [
            'Log::Syslog::Fast',
            min_level => 'info',
            name      => 'Yadda yadda'
        ]
    ]
);

$log->emerg("Time to die.");

DESCRIPTION

This module provides a simple object for sending messages to a syslog daemon via UDP, TCP, or UNIX socket.

METHODS

new

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.

AUTHOR

Adam Thomason <athomason@cpan.org>

COPYRIGHT AND LICENSE

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:

Around line 184:

'=item' outside of any '=over'

Around line 215:

You forgot a '=back' before '=head1'