suse man page for log::dispatch::syslog

Query: log::dispatch::syslog

OS: suse

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Log::Dispatch::Syslog(3)				User Contributed Perl Documentation				  Log::Dispatch::Syslog(3)

NAME
Log::Dispatch::Syslog - Object for logging to system log.
SYNOPSIS
use Log::Dispatch; my $log = Log::Dispatch->new ( outputs => [ [ 'Syslog', min_level => 'info', ident => 'Yadda yadda' ] ] ); $log->emerg( "Time to die." );
DESCRIPTION
This module provides a simple object for sending messages to the system log (via UNIX syslog calls). Note that logging may fail if you try to pass UTF-8 characters in the log message. If logging fails and warnings are enabled, the error message will be output using Perl's "warn".
CONSTRUCTOR
The constructor takes the following parameters in addition to the standard parameters documented in Log::Dispatch::Output: o ident ($) This string will be prepended to all messages in the system log. Defaults to $0. o logopt ($) A string containing the log options (separated by any separator you like). See the openlog(3) and Sys::Syslog docs for more details. Defaults to ''. o 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'. Defaults to 'user' o socket ($) Tells what type of socket to use for sending syslog messages. Valid options are listed in "Sys::Syslog". If you don't provide this, then we let "Sys::Syslog" simply pick one that works, which is the preferred option, as it makes your code more portable.
AUTHOR
Dave Rolsky, <autarch@urth.org> perl v5.12.1 2009-09-22 Log::Dispatch::Syslog(3)
Related Man Pages
log::dispatch::email(3) - suse
net::server::log::sys::syslog(3) - osx
log::agent::channel::syslog(3pm) - debian
log::agent::driver::syslog(3pm) - debian
log::dispatch::syslog(3pm) - debian
Similar Topics in the Unix Linux Community
Log files duplicated themselves?
AIX Syslog login/logout User
Syslog in C
Need help to pick the content from Log file
Syslog Messages from Remote Server are not writing to Log File Anymore