PHP Класс RedBeanPHP\Logger\RDefault

Автор: Gabor de Mooij and the RedBeanPHP Community
Наследование: implements RedBeanPHP\Logger
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$logs array
$mode integer

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

Метод Описание
clear ( ) : self Clears the internal log array, removing all previously stored entries.
getLogs ( ) : array Returns the internal log array.
grep ( string $needle ) : array Searches for all log entries in internal log array for $needle and returns those entries.
log ( ) : void Default logger method logging to STDOUT.
setMode ( integer $mode ) : self Selects a logging mode.

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

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

Clears the internal log array, removing all previously stored entries.
public clear ( ) : self
Результат self

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

The internal log array is where all log messages are stored.
public getLogs ( ) : array
Результат array

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

This method will return an array containing all matches for your search query.
public grep ( string $needle ) : array
$needle string phrase to look for in internal log array
Результат array

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

This is the default/reference implementation of a logger. This method will write the message value to STDOUT (screen) unless you have changed the mode of operation to C_LOGGER_ARRAY.
public log ( ) : void
Результат void

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

There are several options available. * C_LOGGER_ARRAY - log silently, stores entries in internal log array only * C_LOGGER_ECHO - also forward log messages directly to STDOUT
public setMode ( integer $mode ) : self
$mode integer mode of operation for logging object
Результат self

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

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

protected array $logs
Результат array

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

protected int $mode
Результат integer