Property | Type | Description | |
---|---|---|---|
$basePath | |||
$logFile |
Method | Description | |
---|---|---|
__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. |
public getLogFilePath ( ) : string | null | ||
return | string | null |
public getRawFilePath ( ) : string | ||
return | string |
public getSanitisedLogFilePath ( ) : string | ||
return | string |
public setBasePath ( string $path ) | ||
$path | string |
public setLogFile ( string $filename ) | ||
$filename | string |