Public Member Functions | |
__construct (array $params=array()) | |
setFacility ($facility) | |
setApplicationName ($application) | |
shutdown () | |
Protected Member Functions | |
_initializeSyslog () | |
_write ($event) | |
Protected Attributes | |
$_priorities | |
$_defaultPriority = LOG_NOTICE | |
$_application = 'Zend_Log' | |
$_facility = LOG_USER | |
Static Protected Attributes | |
static | $_lastApplication |
static | $_lastFacility |
Definition at line 35 of file Syslog.php.
__construct | ( | array $ | params = array() ) |
Class constructor
array | $options | Array of options; may include "application" and "facility" keys |
Definition at line 88 of file Syslog.php.
_initializeSyslog | ( | ) | [protected] |
Initialize syslog / set application name and facility
string | $application | Application name |
string | $facility | Syslog facility |
Definition at line 106 of file Syslog.php.
_write | ( | $ | event ) | [protected] |
Write a message to syslog.
array | $event | event data |
Reimplemented from Zend_Log_Writer_Abstract.
Definition at line 159 of file Syslog.php.
setApplicationName | ( | $ | application ) |
Set application name
string | $application | Application name |
Definition at line 134 of file Syslog.php.
setFacility | ( | $ | facility ) |
Set syslog facility
string | $facility | Syslog facility |
Definition at line 119 of file Syslog.php.
shutdown | ( | ) |
Close syslog.
Reimplemented from Zend_Log_Writer_Abstract.
Definition at line 148 of file Syslog.php.
$_priorities [protected] |
array( Zend_Log::EMERG => LOG_EMERG, Zend_Log::ALERT => LOG_ALERT, Zend_Log::CRIT => LOG_CRIT, Zend_Log::ERR => LOG_ERR, Zend_Log::WARN => LOG_WARNING, Zend_Log::NOTICE => LOG_NOTICE, Zend_Log::INFO => LOG_INFO, Zend_Log::DEBUG => LOG_DEBUG, )
Definition at line 41 of file Syslog.php.