silverorange Code


Site.SiteErrorLogger
/Site/SiteErrorLogger.php at line 13

Class SiteErrorLogger

SwatErrorLogger
└─SiteErrorLogger

public class SiteErrorLogger
extends SwatErrorLogger

An error logger that creates HTML files containing error details and puts a link in the system error log to the details file

Copyright:
2006-2008 silverorange
License:
http://www.gnu.org/copyleft/lesser.html LGPL License 2.1
See Also:
SwatError::setLogger()

Field Summary
protected string

$base_uri

Base URI to use to construct a link to the log file.

protected string

$log_location

Location in which to store detailed error logs.

Constructor Summary

SiteErrorLogger(string log_location, mixed base_uri)

Creates a new error loggger.

Method Summary
void

log(mixed e)

Logs an error.

protected void

logSummary(mixed summary)

Methods inherited from Swat.SwatErrorLogger
log

Field Detail

/Site/SiteErrorLogger.php at line 33

base_uri

protected string $base_uri

Base URI to use to construct a link to the log file

If null, the log file name is used instead.


/Site/SiteErrorLogger.php at line 24

log_location

protected string $log_location

Location in which to store detailed error logs

This path should include a trailing slash.


Constructor Detail

/Site/SiteErrorLogger.php at line 44

SiteErrorLogger

public SiteErrorLogger(string log_location, mixed base_uri)

Creates a new error loggger

Parameters:
log_location - the location in which to store detailed error log files.

Method Detail

/Site/SiteErrorLogger.php at line 56

log

public void log(mixed e)

Logs an error


/Site/SiteErrorLogger.php at line 115

logSummary

protected void logSummary(mixed summary)

silverorange Code