spunQ_FileLogTarget Class Reference

A LogTarget for files. More...

Inheritance diagram for spunQ_FileLogTarget:

spunQ_ILogTarget

List of all members.

Public Member Functions

 __construct ($path)
 Constructor.
 logMessage ($path, $priority, $message, $file, $line)
 This function will be called by the logging facility.

Protected Attributes

 $file
 The file to write log events to.


Detailed Description

A LogTarget for files.

If the logging fails for any reason, it is instead logged by the spunQ_PhpErrorLogTarget.

Definition at line 8 of file FileLogTarget.class.php.


Constructor & Destructor Documentation

spunQ_FileLogTarget::__construct ( path  ) 

Constructor.

Parameters:
$path A file path.

Definition at line 20 of file FileLogTarget.class.php.


Member Function Documentation

spunQ_FileLogTarget::logMessage ( path,
priority,
message,
file,
line 
)

This function will be called by the logging facility.

A logger rule matched a logging event that was triggered and this log target was provided to the rule.

See also:
spunQ_Logger
Parameters:
$path The source of the log event.
$priority The priority with which the Logger was invoked.
$message The message of the log event.
$file The path to the file where the event actually occured.
$line The line within the file where the log event was triggered
Returns:
spunQ_ILogTarget $this

Implements spunQ_ILogTarget.

Definition at line 28 of file FileLogTarget.class.php.


Member Data Documentation

spunQ_FileLogTarget::$file [protected]

The file to write log events to.

Type:
spunQ_File

Definition at line 14 of file FileLogTarget.class.php.


The documentation for this class was generated from the following file:

Generated on Fri Jul 1 11:12:40 2011 for spunQ3 by  doxygen 1.5.9