class SS_SysLogWriter extends Zend_Log_Writer_Abstract (View source)

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

Methods

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

No description

public
__destruct()

Close the log when this object is destroyed.

public static 
factory($config)

No description

public
_write(array $event)

Write to the system log with the event details.

Details

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

No description

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()

__destruct()

Close the log when this object is destroyed.

static SS_SysLogWriter factory($config)

No description

Parameters

$config

Return Value

SS_SysLogWriter

_write(array $event)

Write to the system log with the event details.

Parameters

array $event

Error details