PHP 클래스 FastFeed\Logger\Logger

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

보호된 프로퍼티들

프로퍼티 타입 설명
$fileName

공개 메소드들

메소드 설명
__construct ( $fileName )
alert ( string $message, array $context = [] ) : null Action must be taken immediately.
critical ( string $message, array $context = [] ) : null Critical conditions.
debug ( string $message, array $context = [] ) : null Detailed debug information.
emergency ( string $message, array $context = [] ) : null System is unusable.
error ( string $message, array $context = [] ) : null Runtime errors that do not require immediate action but should typically be logged and monitored.
info ( string $message, array $context = [] ) : null Interesting events.
log ( mixed $level, string $message, array $context = [] ) : null Logs with an arbitrary level.
notice ( string $message, array $context = [] ) : null Normal but significant events.
warning ( string $message, array $context = [] ) : null Exceptional occurrences that are not errors.

메소드 상세

__construct() 공개 메소드

public __construct ( $fileName )

alert() 공개 메소드

Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
public alert ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

critical() 공개 메소드

Example: Application component unavailable, unexpected exception.
public critical ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

debug() 공개 메소드

Detailed debug information.
public debug ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

emergency() 공개 메소드

System is unusable.
public emergency ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

error() 공개 메소드

Runtime errors that do not require immediate action but should typically be logged and monitored.
public error ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

info() 공개 메소드

Example: User logs in, SQL logs.
public info ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

log() 공개 메소드

Logs with an arbitrary level.
public log ( mixed $level, string $message, array $context = [] ) : null
$level mixed
$message string
$context array
리턴 null

notice() 공개 메소드

Normal but significant events.
public notice ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

warning() 공개 메소드

Example: Use of deprecated APIs, poor use of an API, undesirable things that are not necessarily wrong.
public warning ( string $message, array $context = [] ) : null
$message string
$context array
리턴 null

프로퍼티 상세

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

protected $fileName