PHP 클래스 Neos\Flow\Log\Backend\FileBackend

상속: extends AbstractBackend
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$createParentDirectories boolean
$fileHandle resource
$logFileUrl string
$logFilesToKeep integer
$logMessageOrigin boolean
$maximumLogFileSize integer
$severityLabels array An array of severity labels, indexed by their integer constant

공개 메소드들

메소드 설명
append ( string $message, integer $severity = LOG_INFO, mixed $additionalData = null, string $packageKey = null, string $className = null, string $methodName = null ) : void Appends the given message along with the additional information into the log.
close ( ) : void Carries out all actions necessary to cleanly close the logging backend, such as closing the log file or disconnecting from a database.
open ( ) : void Carries out all actions necessary to prepare the logging backend, such as opening the log file or opening a database connection.
setCreateParentDirectories ( boolean $flag ) : void Sets the flag telling if parent directories in the path leading to the log file URL should be created if they don't exist.
setLogFileURL ( string $logFileUrl ) : void Sets URL pointing to the log file. Usually the full directory and the filename, however any valid stream URL is possible.
setLogFilesToKeep ( integer $logFilesToKeep ) : void If a new log file is started, keep this number of old log files.
setLogMessageOrigin ( boolean $flag ) : void If enabled, a hint about where the log message was created is added to the log file.
setMaximumLogFileSize ( integer $maximumLogFileSize ) : void Sets the maximum log file size, if the logfile is bigger, a new one is started.

보호된 메소드들

메소드 설명
rotateLogFile ( ) : void Rotate the log file and make sure the configured number of files is kept.

메소드 상세

append() 공개 메소드

Appends the given message along with the additional information into the log.
public append ( 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 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

close() 공개 메소드

Note: for this backend we do nothing here and rely on PHP to close the filehandle when the request ends. This is to allow full logging until request end.
public close ( ) : void
리턴 void

open() 공개 메소드

Carries out all actions necessary to prepare the logging backend, such as opening the log file or opening a database connection.
public open ( ) : void
리턴 void

rotateLogFile() 보호된 메소드

Rotate the log file and make sure the configured number of files is kept.
protected rotateLogFile ( ) : void
리턴 void

setCreateParentDirectories() 공개 메소드

The default is to not create parent directories automatically.
public setCreateParentDirectories ( boolean $flag ) : void
$flag boolean TRUE if parent directories should be created
리턴 void

setLogFileURL() 공개 메소드

Sets URL pointing to the log file. Usually the full directory and the filename, however any valid stream URL is possible.
public setLogFileURL ( string $logFileUrl ) : void
$logFileUrl string URL pointing to the log file
리턴 void

setLogFilesToKeep() 공개 메소드

If a new log file is started, keep this number of old log files.
또한 보기: setMaximumLogFileSize()
public setLogFilesToKeep ( integer $logFilesToKeep ) : void
$logFilesToKeep integer Number of old log files to keep
리턴 void

setLogMessageOrigin() 공개 메소드

If enabled, a hint about where the log message was created is added to the log file.
public setLogMessageOrigin ( boolean $flag ) : void
$flag boolean
리턴 void

setMaximumLogFileSize() 공개 메소드

Sets the maximum log file size, if the logfile is bigger, a new one is started.
또한 보기: setLogFilesToKeep()
public setMaximumLogFileSize ( integer $maximumLogFileSize ) : void
$maximumLogFileSize integer Maximum size in bytes
리턴 void

프로퍼티 상세

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

protected bool $createParentDirectories
리턴 boolean

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

protected resource $fileHandle
리턴 resource

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

protected string $logFileUrl
리턴 string

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

protected int $logFilesToKeep
리턴 integer

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

protected bool $logMessageOrigin
리턴 boolean

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

protected int $maximumLogFileSize
리턴 integer

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

An array of severity labels, indexed by their integer constant
protected array $severityLabels
리턴 array