The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Log::Dispatch::Syslog - Object for logging to system log.

SYNOPSIS

  use Log::Dispatch::Syslog;

  my $file = Log::Dispatch::Syslog->new( name      => 'file1',
                                         min_level => 'info',
                                         ident     => 'Yadda yadda' );

  $file->log( level => 'emerg', message => "Time to die." );

DESCRIPTION

This module provides a simple object for sending messages to the system log (via UNIX syslog calls).

METHODS

  • new(%PARAMS)

    This method takes a hash of parameters. The following options are valid:

  • -- name ($)

    The name of the object. Required.

  • -- min_level ($)

    The minimum logging level this object will accept. See the Log::Dispatch documentation for more information. Required.

  • -- max_level ($)

    The maximum logging level this obejct will accept. See the Log::Dispatch documentation for more information. This is not required. By default the maximum is the highest possible level (which means functionally that the object has no maximum).

  • -- ident ($)

    This string will be prepended to all messages in the system log. Defaults to $0.

  • -- logopt ($)

    A string containing the log options (separated by any separator you like). Valid options are 'cons', 'pid', 'ndelay', and 'nowait'. See the openlog(3) and Sys::Syslog docs for more details. I would suggest not using 'cons' but instead using Log::Dispatch::Screen.

  • -- facility ($)

    Specifies what type of program is doing the logging to the system log. Valid options are 'auth', 'authpriv', 'cron', 'daemon', 'kern', 'local0' through 'local7', 'mail, 'news', 'syslog', 'user', 'uucp'. This defaults to 'user'

  • -- socket ($)

    Tells what type of socket to use for sending syslog messages. Valid options are 'unix' or 'inet'. Default to 'inet'.

AUTHOR

Dave Rolsky, <autarch@urth.org>

SEE ALSO

Log::Dispatch, Log::Dispatch::Email, Log::Dispatch::Email::MailSend, Log::Dispatch::Email::MailSendmail, Log::Dispatch::Email::MIMELite, Log::Dispatch::File, Log::Dispatch::Handle, Log::Dispatch::Output, Log::Dispatch::Screen

7 POD Errors

The following errors were encountered while parsing the POD:

Around line 106:

Expected '=item *'

Around line 110:

Expected '=item *'

Around line 115:

Expected '=item *'

Around line 122:

Expected '=item *'

Around line 127:

Expected '=item *'

Around line 134:

Expected '=item *'

Around line 141:

Expected '=item *'