PHP 클래스 Neos\Flow\Log\EarlyLogger

사용 중단: Will be removed in Flow 4.0
상속: implements SystemLoggerInterface, implements Neos\Flow\Log\ThrowableLoggerInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$exceptions array
$logEntries array
$throwables array

공개 메소드들

메소드 설명
addBackend ( Neos\Flow\Log\Backend\BackendInterface $backend ) : void Adds a backend to which the logger sends the logging data
log ( string $message, integer $severity = LOG_INFO, mixed $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null ) : void Writes the given message along with the additional information into the log.
logException ( Exception $exception, array $additionalData = [] ) : void Writes information about the given exception into the log.
logThrowable ( Throwable $throwable, array $additionalData = [] ) : void Writes information about the given exception into the log.
removeBackend ( Neos\Flow\Log\Backend\BackendInterface $backend ) : void Runs the close() method of a backend and removes the backend from the logger.
replayLogsOn ( SystemLoggerInterface $logger, boolean $resetLogs = true ) : SystemLoggerInterface Replays internal logs on provided logger. Use to transfer early logs to real logger when available.

보호된 메소드들

메소드 설명
resetInternalLogs ( ) : void Resets internal log arrays

메소드 상세

addBackend() 공개 메소드

Adds a backend to which the logger sends the logging data
public addBackend ( Neos\Flow\Log\Backend\BackendInterface $backend ) : void
$backend Neos\Flow\Log\Backend\BackendInterface A backend implementation
리턴 void

log() 공개 메소드

Writes the given message along with the additional information into the log.
public log ( string $message, integer $severity = LOG_INFO, mixed $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null ) : void
$message string The message to log
$severity integer An integer value, one of the LOG_* constants
$additionalData mixed A variable containing more information about the event to be logged
$packageKey string Key of the package triggering the log (determined automatically if not specified)
$className string Name of the class triggering the log (determined automatically if not specified)
$methodName string Name of the method triggering the log (determined automatically if not specified)
리턴 void

logException() 공개 메소드

Writes information about the given exception into the log.
public logException ( Exception $exception, array $additionalData = [] ) : void
$exception Exception The exception to log
$additionalData array Additional data to log
리턴 void

logThrowable() 공개 메소드

Writes information about the given exception into the log.
public logThrowable ( Throwable $throwable, array $additionalData = [] ) : void
$throwable Throwable The exception to log
$additionalData array Additional data to log
리턴 void

removeBackend() 공개 메소드

Runs the close() method of a backend and removes the backend from the logger.
public removeBackend ( Neos\Flow\Log\Backend\BackendInterface $backend ) : void
$backend Neos\Flow\Log\Backend\BackendInterface The backend to remove
리턴 void

replayLogsOn() 공개 메소드

Replays internal logs on provided logger. Use to transfer early logs to real logger when available.
public replayLogsOn ( SystemLoggerInterface $logger, boolean $resetLogs = true ) : SystemLoggerInterface
$logger SystemLoggerInterface
$resetLogs boolean
리턴 SystemLoggerInterface

resetInternalLogs() 보호된 메소드

Resets internal log arrays
protected resetInternalLogs ( ) : void
리턴 void

프로퍼티 상세

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

protected array $exceptions
리턴 array

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

protected array $logEntries
리턴 array

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

protected array $throwables
리턴 array