PHP 클래스 DirectAdmin\LetsEncrypt\Lib\Logger

파일 보기 프로젝트 열기: Petertjuh360/da-letsencrypt 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

error() 공개 메소드

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() 공개 메소드

Return the current log
public getLog ( ) : array
리턴 array

info() 공개 메소드

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

log() 공개 메소드

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

output() 공개 메소드

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

setErrorShort() 공개 메소드

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

short() 공개 메소드

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