PHP 클래스 Monolog\Logger

It contains a stack of Handlers and a stack of Processors, and uses them to store records that are added to it.
저자: Jordi Boggiano ([email protected])
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$handlers The handler stack
$levels
$name
$processors

공개 메소드들

메소드 설명
__construct ( string $name )
addAlert ( string $message, array $context = [] ) : boolean Adds a log record at the ALERT level.
addCritical ( string $message, array $context = [] ) : boolean Adds a log record at the CRITICAL level.
addDebug ( string $message, array $context = [] ) : boolean Adds a log record at the DEBUG level.
addError ( string $message, array $context = [] ) : boolean Adds a log record at the ERROR level.
addInfo ( string $message, array $context = [] ) : boolean Adds a log record at the INFO level.
addRecord ( integer $level, string $message, array $context = [] ) : boolean Adds a log record.
addWarning ( string $message, array $context = [] ) : boolean Adds a log record at the WARNING level.
alert ( string $message, array $context = [] ) : boolean Adds a log record at the ALERT level.
crit ( string $message, array $context = [] ) : boolean Adds a log record at the CRITICAL level.
debug ( string $message, array $context = [] ) : boolean Adds a log record at the DEBUG level.
emerg ( string $message, array $context = [] ) : boolean Adds a log record at the ALERT level.
err ( string $message, array $context = [] ) : boolean Adds a log record at the ERROR level.
getLevelName ( integer $level ) : string Gets the name of the logging level.
info ( string $message, array $context = [] ) : boolean Adds a log record at the INFO level.
notice ( string $message, array $context = [] ) : boolean Adds a log record at the INFO level.
popHandler ( ) : Monolog\Handler\HandlerInterface Pops an handler from the stack
popProcessor ( ) : callable Removes the processor on top of the stack and returns it.
pushHandler ( Monolog\Handler\HandlerInterface $handler ) Pushes an handler on the stack.
pushProcessor ( callable $callback ) Adds a processor in the stack.
warn ( string $message, array $context = [] ) : boolean Adds a log record at the WARNING level.

메소드 상세

__construct() 공개 메소드

public __construct ( string $name )
$name string The logging channel

addAlert() 공개 메소드

Adds a log record at the ALERT level.
public addAlert ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

addCritical() 공개 메소드

Adds a log record at the CRITICAL level.
public addCritical ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

addDebug() 공개 메소드

Adds a log record at the DEBUG level.
public addDebug ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

addError() 공개 메소드

Adds a log record at the ERROR level.
public addError ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

addInfo() 공개 메소드

Adds a log record at the INFO level.
public addInfo ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

addRecord() 공개 메소드

Adds a log record.
public addRecord ( integer $level, string $message, array $context = [] ) : boolean
$level integer The logging level
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

addWarning() 공개 메소드

Adds a log record at the WARNING level.
public addWarning ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

alert() 공개 메소드

This method allows to have an easy ZF compatibility.
public alert ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

crit() 공개 메소드

This method allows to have an easy ZF compatibility.
public crit ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

debug() 공개 메소드

This method allows to have an easy ZF compatibility.
public debug ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

emerg() 공개 메소드

This method allows to have an easy ZF compatibility.
public emerg ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

err() 공개 메소드

This method allows to have an easy ZF compatibility.
public err ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

getLevelName() 공개 정적인 메소드

Gets the name of the logging level.
public static getLevelName ( integer $level ) : string
$level integer
리턴 string

info() 공개 메소드

This method allows to have an easy ZF compatibility.
public info ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

notice() 공개 메소드

This method allows to have an easy ZF compatibility.
public notice ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

popHandler() 공개 메소드

Pops an handler from the stack
public popHandler ( ) : Monolog\Handler\HandlerInterface
리턴 Monolog\Handler\HandlerInterface

popProcessor() 공개 메소드

Removes the processor on top of the stack and returns it.
public popProcessor ( ) : callable
리턴 callable

pushHandler() 공개 메소드

Pushes an handler on the stack.
public pushHandler ( Monolog\Handler\HandlerInterface $handler )
$handler Monolog\Handler\HandlerInterface

pushProcessor() 공개 메소드

Adds a processor in the stack.
public pushProcessor ( callable $callback )
$callback callable

warn() 공개 메소드

This method allows to have an easy ZF compatibility.
public warn ( string $message, array $context = [] ) : boolean
$message string The log message
$context array The log context
리턴 boolean Whether the record has been processed

프로퍼티 상세

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

The handler stack
protected $handlers

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

protected static $levels

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

protected $name

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

protected $processors