PHP 클래스 Logger\Handler

Handles a log message
파일 보기 프로젝트 열기: prggmr/xpspl

보호된 프로퍼티들

프로퍼티 타입 설명
$_formatter object The message formatter
$_level Level to handle log messages.
$_output resource Output file.

공개 메소드들

메소드 설명
__construct ( Formatter $formatter, resource $output, integer $level = LOGGER_LOG_LEVEL ) : void Sets the formatter.
handle ( integer $code, string $message ) : void Handles a message.

보호된 메소드들

메소드 설명
_make_writeable ( ) : boolean Makes the output writeable.

메소드 상세

__construct() 공개 메소드

Sets the formatter.
public __construct ( Formatter $formatter, resource $output, integer $level = LOGGER_LOG_LEVEL ) : void
$formatter Formatter
$output resource Output resource or file
$level integer Code level to log, anything greater than the given code will be logged.
리턴 void

_make_writeable() 보호된 메소드

This will create a non-blocking stream to the given file.
protected _make_writeable ( ) : boolean
리턴 boolean

handle() 공개 메소드

Handles a message.
public handle ( integer $code, string $message ) : void
$code integer Log level code.
$message string Message to handle.
리턴 void

프로퍼티 상세

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

The message formatter
protected object $_formatter
리턴 object

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

Level to handle log messages.
protected $_level

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

Output file.
protected resource $_output
리턴 resource