PHP Класс lithium\analysis\logger\adapter\Syslog

См. также: lithium\analysis\logger\adapter\Syslog::__construct()
Наследование: extends lithium\core\Object
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_isConnected boolean Flag indicating whether or not the connection to syslogd has been opened yet.
$_priorities array Array that maps Logger message priority names to syslog-compatible priority constants.

Открытые методы

Метод Описание
__construct ( array $config = [] ) : void Constructor. Configures the Syslog adapter instance with the default settings. For more information on these settings, see the documentation for tthe openlog() function.
write ( string $priority, string $message ) : Closure Appends $message to the system log.

Описание методов

__construct() публичный Метод

Constructor. Configures the Syslog adapter instance with the default settings. For more information on these settings, see the documentation for tthe openlog() function.
public __construct ( array $config = [] ) : void
$config array Available configuration settings for this adapter: - `'identity'` _string_: The identity string to be attached to each message in the system log. This is usually a string that meaningfully identifies your application. Defaults to `false`. - `'options'` _integer_: The flags to use when opening the log. Defaults to `LOG_ODELAY`. - `'facility'` _integer_: A flag specifying the program to use to log the messages. See the `openlog()` documentation for more information. Defaults to `LOG_USER`.
Результат void

write() публичный Метод

Appends $message to the system log.
public write ( string $priority, string $message ) : Closure
$priority string The message priority string. Maps to a `syslogd` priority constant.
$message string The message to write.
Результат Closure Function returning boolean `true` on successful write, `false` otherwise.

Описание свойств

$_isConnected защищенное свойство

Flag indicating whether or not the connection to syslogd has been opened yet.
protected bool $_isConnected
Результат boolean

$_priorities защищенное свойство

Array that maps Logger message priority names to syslog-compatible priority constants.
protected array $_priorities
Результат array