Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Writes log messages to syslog
string $_application = 'Zend_Log'
Application name used by this syslog-writer instance
string $_defaultPriority = 'LOG_NOTICE'
The default log priority - for unmapped custom priorities
int $_facility = 'LOG_USER'
Facility used by this syslog-writer instance
string $_lastApplication = ''
Last application name set by a syslog-writer instance
string $_lastFacility = ''
Last facility name set by a syslog-writer instance
array $_priorities = 'array'
Maps Zend_Log priorities to PHP's syslog priorities
array $_validFacilities = 'array'
_validFacilities
__construct(
$params
=
array
)
:
void
Class constructor
_initializeSyslog(
)
:
void
Initialize syslog / set application name and facility
_initializeValidFacilities(
)
:
void
Initialize values facilities
_write(
array $event
)
:
void
Write a message to syslog.
factory(
array|Zend_Config $config
)
:
Zend_Log_Writer_Syslog
Create a new instance of Zend_Log_Writer_Syslog
setApplicationName(
string $application
)
:
void
Set application name
setFacility(
int $facility
)
:
void
Set syslog facility
shutdown(
)
:
void
Close syslog.