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
파일 보기 프로젝트 열기: phalcon/incubator

보호된 프로퍼티들

프로퍼티 타입 설명
$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