NAME

Paraniod::Log::Email - Log Facility Email

MODULE VERSION

$Id: Email.pm,v 0.4 2008/02/29 20:45:28 acorliss Exp $

SYNOPSIS

use Paranoid::Log::Email;

$rv = init();
$rv = remove($name);

$rv = log($msgtime, $severity, $message, $name, $facility, $level, $scope,
          $mailhost, $recipient, $sender, $subject);

REQUIREMENTS

Paranoid::Debug

Net::SMTP

DESCRIPTION

This is a template for logging facilities which can be used by Paranoid::Log. The functions above are the minimum required for proper operation. For specific examples please see the actual facilities bundled with the the Paranoid modules.

These modules are typically not meant to be used directly, but through the Paranoid::Log interface only.

FUNCTIONS

init

$rv = init();

This function is called the first time a logging facility is activated. You can use it to initialize an internal data structures necessary for proper operation.

remove

$rv = remove($name);

This function is called to deactivate a named instance of the logging facility.

log

$rv = log($msgtime, $severity, $message, $name, $facility, $level, $scope,
          $mailhost, $recipient, $sender, $subject);

This function adds another log message to the log file. This is not meant to be used directly. Please use the Paranoid::Log module. Any errors which occur during the e-mail transaction are stored in Paranoid::ERROR.

SEE ALSO

Paranoid::Log(3)

HISTORY

None as of yet.

AUTHOR/COPYRIGHT

(c) 2005 Arthur Corliss (corliss@digitalmages.com)