NAME

Paraniod::Log::File - File Logging Functions

MODULE VERSION

$Id: File.pm,v 0.5 2008/02/27 06:52:08 acorliss Exp $

SYNOPSIS

use Paranoid::Log::File;

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

$rv = log($msgtime, $severity, $message, $name, $facility, $level, $scope,
          $filename);

REQUIREMENTS

Fcntl Paranoid::Debug Paranoid::Filesystem

DESCRIPTION

This module logs messages to the log files, and is safe for use with forked children logging to the same files. Each child will open their own filehandles and use advisory locking for writes.

This module should not be used directly, Paranoid::Log should be your exclusive interface for logging.

FUNCTIONS

init

$rv = init();

For the purposes of this module this function closes any filehandles opened by the current process.

remove

$rv = remove($filename);

This function closes any open filehandles to the specified filename if they were opened by the current process.

log

$rv = log($msgtime, $severity, $message, $name, $facility, $level, $scope,
          $filename);

This function adds another log message to the log file. This is not meant to be used directly. Please use the Paranoid::Log module.

SEE ALSO

Paranoid::Log(3)

HISTORY

None as of yet.

AUTHOR/COPYRIGHT

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