PHP Класс DirectAdmin\LetsEncrypt\Lib\Logger

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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