PHP 클래스 DeploynautLogFile

파일 보기 프로젝트 열기: silverstripe/deploynaut 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$basePath
$logFile

공개 메소드들

메소드 설명
__construct ( string $logFile, string | null $basePath = null )
content ( ) : string Return the content of the log file.
exists ( ) : boolean Does the log file exist?
getLogFilePath ( ) : string | null Return log file path, assuming it exists. Returns NULL if nothing found.
getRawFilePath ( ) : string Return the un-sanitised log path.
getSanitisedLogFilePath ( ) : string Get the sanitised log path.
setBasePath ( string $path ) Set the base path of where logs reside
setLogFile ( string $filename ) Set the log filename
write ( string $message ) Write a message line into the log file.

메소드 상세

__construct() 공개 메소드

public __construct ( string $logFile, string | null $basePath = null )
$logFile string The log filename
$basePath string | null Base path of where logs reside. Defaults to DEPLOYNAUT_LOG_PATH

content() 공개 메소드

Return the content of the log file.
public content ( ) : string
리턴 string

exists() 공개 메소드

Does the log file exist?
public exists ( ) : boolean
리턴 boolean

getLogFilePath() 공개 메소드

Return log file path, assuming it exists. Returns NULL if nothing found.
public getLogFilePath ( ) : string | null
리턴 string | null

getRawFilePath() 공개 메소드

Return the un-sanitised log path.
public getRawFilePath ( ) : string
리턴 string

getSanitisedLogFilePath() 공개 메소드

Get the sanitised log path.
public getSanitisedLogFilePath ( ) : string
리턴 string

setBasePath() 공개 메소드

Set the base path of where logs reside
public setBasePath ( string $path )
$path string

setLogFile() 공개 메소드

Set the log filename
public setLogFile ( string $filename )
$filename string

write() 공개 메소드

Write a message line into the log file.
public write ( string $message )
$message string

프로퍼티 상세

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

protected $basePath

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

protected $logFile