PHP Class DirectAdmin\LetsEncrypt\Lib\Logger

Show file Open project: Petertjuh360/da-letsencrypt Class Usage Examples

Public Methods

Method Description
error ( string $line, string | null $short = null, boolean $stop = true ) Add a error line to the logger, and by default exit page
getLog ( ) : array Return the current log
info ( $line ) Add a info line to the logger
log ( $line ) Add a line to the logger
output ( boolean | string $back = true ) Render output, will be printed
setErrorShort ( $short ) Set a short for when the action fails
short ( $short ) Set a short for when the action succeess

Method Details

error() public method

Add a error line to the logger, and by default exit page
public error ( string $line, string | null $short = null, boolean $stop = true )
$line string Error line
$short string | null Use a custom short, instead of the $errorShort
$stop boolean Stop page load using exit and render output

getLog() public method

Return the current log
public getLog ( ) : array
return array

info() public method

Add a info line to the logger
public info ( $line )
$line

log() public method

Add a line to the logger
public log ( $line )
$line

output() public method

Render output, will be printed
public output ( boolean | string $back = true )
$back boolean | string

setErrorShort() public method

Set a short for when the action fails
public setErrorShort ( $short )
$short

short() public method

Set a short for when the action succeess
public short ( $short )
$short