\Horde_Log_Handler_Syslog

Summary

Methods
Properties
Constants
addFilter()
log()
setOption()
write()
No public properties found
No constants found
_toSyslog()
_initializeSyslog()
$_options
$_filters
$_lastIdent
$_lastFacility
$_priorities
N/A
No private methods found
No private properties found
N/A

Properties

$_options

$_options : array

Options to be set by setOption().

Sets openlog and syslog options.

Type

array

$_filters

$_filters : array

List of filter objects.

Type

array

$_lastIdent

$_lastIdent : string

Last ident set by a syslog-handler instance.

Type

string

$_lastFacility

$_lastFacility : string

Last facility name set by a syslog-handler instance.

Type

string

$_priorities

$_priorities : array

Map of log levels to syslog priorities.

Type

array

Methods

addFilter()

addFilter(\Horde_Log_Filter  $filter) 

Add a filter specific to this handler.

Parameters

\Horde_Log_Filter $filter

Filter to add.

log()

log(array  $event) 

Log a message to this handler.

Parameters

array $event

Log event.

setOption()

setOption(string  $optionKey, mixed  $optionValue) : boolean

Sets an option specific to the implementation of the log handler.

Parameters

string $optionKey

Key name for the option to be changed. Keys are handler-specific.

mixed $optionValue

New value to assign to the option

Throws

\Horde_Log_Exception

Returns

boolean —

True.

write()

write(array  $event) : boolean

Write a message to the log.

Parameters

array $event

Log event.

Throws

\Horde_Log_Exception

Returns

boolean —

True.

_toSyslog()

_toSyslog(integer  $level) : integer

Translate a log level to a syslog LOG_* priority.

Parameters

integer $level

Log level.

Returns

integer —

A LOG_* constant.

_initializeSyslog()

_initializeSyslog() 

Initialize syslog / set ident and facility.

Throws

\Horde_Log_Exception