PHP 클래스 Elastica\Log

저자: Nicolas Ruflin ([email protected])
상속: extends Psr\Log\AbstractLogger
파일 보기 프로젝트 열기: ruflin/elastica 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_lastMessage Last logged message.
$_log string | boolean Log path or true if enabled.

공개 메소드들

메소드 설명
__construct ( $log = '' ) Inits log object.
getLastMessage ( ) : string Return last logged message.
log ( mixed $level, string $message, array $context = [] ) : null | void Log a message.
setLog ( boolean | string $log ) Enable/disable log or set log path.

메소드 상세

__construct() 공개 메소드

Inits log object.
public __construct ( $log = '' )

getLastMessage() 공개 메소드

Return last logged message.
public getLastMessage ( ) : string
리턴 string Last logged message

log() 공개 메소드

Log a message.
public log ( mixed $level, string $message, array $context = [] ) : null | void
$level mixed
$message string
$context array
리턴 null | void

setLog() 공개 메소드

Enable/disable log or set log path.
public setLog ( boolean | string $log )
$log boolean | string Enables log or sets log path

프로퍼티 상세

$_lastMessage 보호되어 있는 프로퍼티

Last logged message.
protected $_lastMessage

$_log 보호되어 있는 프로퍼티

Log path or true if enabled.
protected string|bool $_log
리턴 string | boolean