PHP 클래스 Logger\Logger

상속: extends Psr\Log\AbstractLogger, implements Psr\Log\LoggerInterface
파일 보기 프로젝트 열기: prggmr/xpspl 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_handlers Array of log handlers.
$_instance Instanceof the singleton
$_loggers Array of loggers.

공개 메소드들

메소드 설명
__clone ( ) Disallow cloning
add_global_handler ( Handler $handler ) : void Adds a global handler for all logs.
add_handler ( Handler $handler ) : void Adds a handler.
critical ( string $message ) : void Logs a critical message.
debug ( string $message ) : void Logs a debug message.
error ( string $message ) : void Logs a error message.
get_logger ( string $logger = null ) : object Returns a new logger.
info ( string $message ) : void Logs a info message.
instance ( ) Returns an instance of the singleton.
log ( integer $code, string $message ) : void Logs a message.
warning ( string $message ) : void Logs a warning message.

메소드 상세

__clone() 최종 공개 메소드

Disallow cloning
final public __clone ( )

add_global_handler() 공개 메소드

Adds a global handler for all logs.
public add_global_handler ( Handler $handler ) : void
$handler Handler HJandler
리턴 void

add_handler() 공개 메소드

Adds a handler.
public add_handler ( Handler $handler ) : void
$handler Handler HJandler
리턴 void

critical() 공개 메소드

Logs a critical message.
public critical ( string $message ) : void
$message string Message to log.
리턴 void

debug() 공개 메소드

Logs a debug message.
public debug ( string $message ) : void
$message string Message to log.
리턴 void

error() 공개 메소드

Logs a error message.
public error ( string $message ) : void
$message string Message to log.
리턴 void

get_logger() 공개 메소드

Returns a new logger.
public get_logger ( string $logger = null ) : object
$logger string Name of the logger.
리턴 object Logger

info() 공개 메소드

Logs a info message.
public info ( string $message ) : void
$message string Message to log.
리턴 void

instance() 최종 공개 정적인 메소드

Passes args to constructor
final public static instance ( )

log() 공개 메소드

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

warning() 공개 메소드

Logs a warning message.
public warning ( string $message ) : void
$message string Message to log.
리턴 void

프로퍼티 상세

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

Array of log handlers.
protected $_handlers

$_instance 보호되어 있는 정적으로 프로퍼티

Instanceof the singleton
protected static $_instance

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

Array of loggers.
protected $_loggers