PHP 클래스 ExceptionLogRoute

The log files are stored under {@link setLogPath logPath} and the file name is specified by {@link setLogFile logFile}. If the size of the log file is greater than {@link setMaxFileSize maxFileSize} (in kilo-bytes), a rotation is performed, which renames the current log file by suffixing the file name with '.1'. All existing log files are moved backwards one place, i.e., '.2' to '.3', '.1' to '.2'. The property {@link setMaxLogFiles maxLogFiles} specifies how many files to be kept.
부터: 1.0
저자: Qiang Xue ([email protected])
상속: extends CLogRoute
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$adminEmail
$emailSubject
$exclude_regex
$useragent_regex

공개 메소드들

메소드 설명
getLogFile ( ) : string
getLogPath ( ) : string
getMaxFileSize ( ) : integer
getMaxLogFiles ( ) : integer
init ( ) Initializes the route.
isFiltered ( $msg )
setLogFile ( string $value )
setLogPath ( string $value )
setMaxFileSize ( integer $value )
setMaxLogFiles ( integer $value )
userAgentFiltered ( $useragent )

보호된 메소드들

메소드 설명
processLogs ( array $logs ) Saves log messages in files.
rotateFiles ( ) Rotates log files.

메소드 상세

getLogFile() 공개 메소드

public getLogFile ( ) : string
리턴 string log file name. Defaults to 'application.log'.

getLogPath() 공개 메소드

public getLogPath ( ) : string
리턴 string directory storing log files. Defaults to application runtime path.

getMaxFileSize() 공개 메소드

public getMaxFileSize ( ) : integer
리턴 integer maximum log file size in kilo-bytes (KB). Defaults to 1024 (1MB).

getMaxLogFiles() 공개 메소드

public getMaxLogFiles ( ) : integer
리턴 integer number of files used for rotation. Defaults to 5.

init() 공개 메소드

This method is invoked after the route is created by the route manager.
public init ( )

isFiltered() 공개 메소드

public isFiltered ( $msg )

processLogs() 보호된 메소드

Saves log messages in files.
protected processLogs ( array $logs )
$logs array list of log messages

rotateFiles() 보호된 메소드

Rotates log files.
protected rotateFiles ( )

setLogFile() 공개 메소드

public setLogFile ( string $value )
$value string log file name

setLogPath() 공개 메소드

public setLogPath ( string $value )
$value string directory for storing log files.

setMaxFileSize() 공개 메소드

public setMaxFileSize ( integer $value )
$value integer maximum log file size in kilo-bytes (KB).

setMaxLogFiles() 공개 메소드

public setMaxLogFiles ( integer $value )
$value integer number of files used for rotation.

userAgentFiltered() 공개 메소드

public userAgentFiltered ( $useragent )

프로퍼티 상세

$adminEmail 공개적으로 프로퍼티

public $adminEmail

$emailSubject 공개적으로 프로퍼티

public $emailSubject

$exclude_regex 공개적으로 프로퍼티

public $exclude_regex

$useragent_regex 공개적으로 프로퍼티

public $useragent_regex