Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes

Zend_Log_Writer_Syslog Class Reference

Inheritance diagram for Zend_Log_Writer_Syslog:
Zend_Log_Writer_Abstract

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

Detailed Description

Definition at line 35 of file Syslog.php.


Constructor & Destructor Documentation

__construct ( array $  params = array() )

Class constructor

Parameters:
array$optionsArray of options; may include "application" and "facility" keys
Returns:
void

Definition at line 88 of file Syslog.php.


Member Function Documentation

_initializeSyslog (  ) [protected]

Initialize syslog / set application name and facility

Parameters:
string$applicationApplication name
string$facilitySyslog facility
Returns:
void

Definition at line 106 of file Syslog.php.

_write ( event ) [protected]

Write a message to syslog.

Parameters:
array$eventevent data
Returns:
void

Reimplemented from Zend_Log_Writer_Abstract.

Definition at line 159 of file Syslog.php.

setApplicationName ( application )

Set application name

Parameters:
string$applicationApplication name
Returns:
void

Definition at line 134 of file Syslog.php.

setFacility ( facility )

Set syslog facility

Parameters:
string$facilitySyslog facility
Returns:
void

Definition at line 119 of file Syslog.php.

shutdown (  )

Close syslog.

Returns:
void

Reimplemented from Zend_Log_Writer_Abstract.

Definition at line 148 of file Syslog.php.


Field Documentation

$_priorities [protected]
Initial value:
 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.


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