PHP 클래스 ManaPHP\Logger

상속: extends Component, implements manaphp\LoggerInterface
파일 보기 프로젝트 열기: manaphp/manaphp

공개 프로퍼티들

프로퍼티 타입 설명
$adapter ManaPHP\Logger\AdapterInterface

보호된 프로퍼티들

프로퍼티 타입 설명
$_level string
$_s2i array

공개 메소드들

메소드 설명
__construct ( string | array | ManaPHP\Logger\AdapterInterface $options = [] ) Logger constructor.
debug ( string $message, array $context = [] ) : static Sends/Writes a debug message to the log
error ( string $message, array $context = [] ) : static Sends/Writes an error message to the log
fatal ( string $message, array $context = [] ) : static Sends/Writes a critical message to the log
getLevel ( ) : string Returns the current log level
getLevels ( ) : array
info ( string $message, array $context = [] ) : static Sends/Writes an info message to the log
log ( string $level, string $message, array $context ) : static
setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
setLevel ( string $level ) : static Filters the logs sent to the handlers to be greater or equals than a specific level
warning ( string $message, array $context = [] ) : static Sends/Writes a warning message to the log

메소드 상세

__construct() 공개 메소드

Logger constructor.
public __construct ( string | array | ManaPHP\Logger\AdapterInterface $options = [] )
$options string | array | ManaPHP\Logger\AdapterInterface

debug() 공개 메소드

Sends/Writes a debug message to the log
public debug ( string $message, array $context = [] ) : static
$message string
$context array
리턴 static

error() 공개 메소드

Sends/Writes an error message to the log
public error ( string $message, array $context = [] ) : static
$message string
$context array
리턴 static

fatal() 공개 메소드

Sends/Writes a critical message to the log
public fatal ( string $message, array $context = [] ) : static
$message string
$context array
리턴 static

getLevel() 공개 메소드

Returns the current log level
public getLevel ( ) : string
리턴 string

getLevels() 공개 메소드

public getLevels ( ) : array
리턴 array

info() 공개 메소드

Sends/Writes an info message to the log
public info ( string $message, array $context = [] ) : static
$message string
$context array
리턴 static

log() 공개 메소드

public log ( string $level, string $message, array $context ) : static
$level string
$message string
$context array
리턴 static

setDependencyInjector() 공개 메소드

public setDependencyInjector ( ManaPHP\DiInterface $dependencyInjector ) : static
$dependencyInjector ManaPHP\DiInterface
리턴 static

setLevel() 공개 메소드

Filters the logs sent to the handlers to be greater or equals than a specific level
public setLevel ( string $level ) : static
$level string
리턴 static

warning() 공개 메소드

Sends/Writes a warning message to the log
public warning ( string $message, array $context = [] ) : static
$message string
$context array
리턴 static

프로퍼티 상세

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

protected string $_level
리턴 string

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

protected array $_s2i
리턴 array

$adapter 공개적으로 프로퍼티

public AdapterInterface,ManaPHP\Logger $adapter
리턴 ManaPHP\Logger\AdapterInterface