class SS_SysLogWriter extends Zend_Log_Writer_Abstract

Sends an error message to the system log whenever an error occurs.

Methods

__construct(string $ident = null, $options = null, $facility = LOG_LOCAL0)

No description

__destruct()

Close the log when this object is destroyed.

static SS_SysLogWriter
factory($config)

No description

_write(array $event)

Write to the system log with the event details.

Details

at line 20
__construct(string $ident = null, $options = null, $facility = LOG_LOCAL0)

Parameters

string $ident Identity of log, defaults to "Silverstripe_log" if null
$options Option constants, passed to openlog()
$facility Type of program logging the message, passed to openlog()

at line 29
__destruct()

Close the log when this object is destroyed.

at line 37
static SS_SysLogWriter factory($config)

Parameters

$config

Return Value

SS_SysLogWriter

at line 45
_write(array $event)

Write to the system log with the event details.

Parameters

array $event Error details