Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Zend_Log_Writer_Syslog Class Reference

Public Member Functions

 __construct (array $params=array())
 Class constructor.
 
 setFacility ($facility)
 Set syslog facility.
 
 setApplicationName ($application)
 Set application name.
 
 shutdown ()
 Close syslog.
 
- Public Member Functions inherited from Zend_Log_Writer_Abstract
 addFilter ($filter)
 Add a filter specific to this writer.
 
 write ($event)
 Log a message to this writer.
 
 setFormatter (Zend_Log_Formatter_Interface $formatter)
 Set a new formatter for this writer.
 
 shutdown ()
 Perform shutdown activites such as closing open resources.
 

Static Public Member Functions

static factory ($config)
 Create a new instance of Zend_Log_Writer_Syslog.
 

Protected Member Functions

 _initializeValidFacilities ()
 Initialize values facilities.
 
 _initializeSyslog ()
 Initialize syslog / set application name and facility.
 
 _write ($event)
 Write a message to syslog.
 
- Protected Member Functions inherited from Zend_Log_Writer_Abstract
 _write ($event)
 Write a message to the log.
 

Protected Attributes

 $_priorities
 
 $_defaultPriority = LOG_NOTICE
 
 $_application = 'Zend_Log'
 
 $_facility = LOG_USER
 
 $_validFacilities = array()
 
- Protected Attributes inherited from Zend_Log_Writer_Abstract
 $_filters = array()
 
 $_formatter
 

Static Protected Attributes

static $_lastApplication
 
static $_lastFacility
 

Additional Inherited Members

- Static Protected Member Functions inherited from Zend_Log_Writer_Abstract
static _parseConfig ($config)
 Validate and optionally convert the config to array.
 

Constructor & Destructor Documentation

__construct ( array  $params = array())

Class constructor.

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

Member Function Documentation

_initializeSyslog ( )
protected

Initialize syslog / set application name and facility.

Returns
void
_initializeValidFacilities ( )
protected

Initialize values facilities.

Returns
void
_write (   $event)
protected

Write a message to syslog.

Parameters
array$eventevent data
Returns
void
static factory (   $config)
static

Create a new instance of Zend_Log_Writer_Syslog.

Parameters
array | Zend_Config$config
Returns
Zend_Log_Writer_Syslog

Implements Zend_Log_FactoryInterface.

setApplicationName (   $application)

Set application name.

Parameters
string$applicationApplication name
Returns
Zend_Log_Writer_Syslog
setFacility (   $facility)

Set syslog facility.

Parameters
int$facilitySyslog facility
Returns
Zend_Log_Writer_Syslog
Exceptions
Zend_Log_Exceptionfor invalid log facility
shutdown ( )

Close syslog.

Returns
void

Member Data Documentation

$_application = 'Zend_Log'
protected
$_defaultPriority = LOG_NOTICE
protected
$_facility = LOG_USER
protected
$_lastApplication
staticprotected
$_lastFacility
staticprotected
$_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,
)
$_validFacilities = array()
protected