PHP Класс Phalcon\Logger\Adapter\File\Multiple

Adapter to save logs into multiple log files based on their level. TODO Implement transactions.
Наследование: extends Phalcon\Logger\Adapter\File, implements Phalcon\Logger\AdapterInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$options array Adapter options.
$path string Path to the directory where log files will be saved. No trailing slash.

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

Метод Описание
__construct ( string $path, array $options = [] ) Class constructor.
begin ( )
commit ( )
logInternal ( string $message, integer $type, integer $time, array $context = [] ) Writes the log to the file itself
rollback ( )

Защищенные методы

Метод Описание
getTypeString ( integer $type ) : string getTypeString

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

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

Class constructor.
public __construct ( string $path, array $options = [] )
$path string Directory path for saving the log files.
$options array The following options are available: - extension (string) Extension for all log files. - prefix (string) Name prefix for all log files

begin() публичный метод

public begin ( )

commit() публичный метод

public commit ( )

getTypeString() защищенный метод

Translates Phalcon log types into type strings. TODO: It would be nice to make a config option to say which error levels go into what files.
protected getTypeString ( integer $type ) : string
$type integer
Результат string

logInternal() публичный метод

Writes the log to the file itself
public logInternal ( string $message, integer $type, integer $time, array $context = [] )
$message string
$type integer
$time integer
$context array

rollback() публичный метод

public rollback ( )

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

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

Adapter options.
protected array $options
Результат array

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

Path to the directory where log files will be saved. No trailing slash.
protected string $path
Результат string