NAME
Paraniod::Log::Syslog - Log Facility Syslog
MODULE VERSION
$Id: Syslog.pm,v 0.4 2008/02/28 19:26:49 acorliss Exp $
SYNOPSIS
use Paranoid::Log::Syslog;
$rv = init();
$rv = remove($name);
$rv = log($msgtime, $severity, $message, $name, $facility, $level, $scope);
REQUIREMENTS
Paranoid::Debug
Unix::Syslog
DESCRIPTION
This modules provides syslog facilities for Paranoid::Log.
These modules are typically not meant to be used directly, but through the Paranoid::Log interface only.
FUNCTIONS
init
$rv = init();
remove
$rv = remove();
This closes the logger. This may be pointless, however, since it is (re)opened automatically with every call to log.
log
$rv = log($msgtime, $severity, $message, $name, $facility, $level, $scope);
This function causes the passed message to be logged to the syslogger. Only $message is mandatory. Facility and severity will default to user.notice if not specified.
NOTE: The syslog facility is set in this case by the $name argument, not the $facility. The latter argument refers to a logging facility in Paranoid's context.
NOTE: The syslog facility cannot be changed per-call to log. The only way to change that is to call remove before calling log.
SEE ALSO
Paranoid::Log(3)
HISTORY
None as of yet.
AUTHOR/COPYRIGHT
(c) 2005 Arthur Corliss (corliss@digitalmages.com)