Documentation

SLog
in package

Table of Contents

Properties

$CONSOLE  : mixed
$LOG  : mixed
$LOGFILE  : mixed
$logLevelMap  : array<string|int, mixed>
$LOGTYPE  : mixed

Methods

debug()  : int
Write debug log
error()  : mixed
fatal()  : mixed
notice()  : mixed
trace()  : mixed
warning()  : mixed
write()  : mixed
writeArray()  : mixed

Properties

$CONSOLE

public static mixed $CONSOLE = \false

$LOG

public static mixed $LOG = \false

$LOGFILE

public static mixed $LOGFILE = ""

$logLevelMap

public static array<string|int, mixed> $logLevelMap = array(\LOG_DEBUG => 'DEBUG', \LOG_INFO => 'INFO', \LOG_NOTICE => 'NOTICE', \LOG_WARNING => 'WARNING', \LOG_ERR => 'ERR', \LOG_CRIT => 'CRIT', \LOG_ALERT => 'ALERT', \LOG_EMERG => 'EMERG')

$LOGTYPE

public static mixed $LOGTYPE = "text"

Methods

debug()

Write debug log

public static debug(mixed ...$args) : int
Parameters
$args : mixed
Return values
int

error()

public static error(mixed ...$args) : mixed
Parameters
$args : mixed

fatal()

public static fatal(mixed ...$args) : mixed
Parameters
$args : mixed

notice()

public static notice(mixed ...$args) : mixed
Parameters
$args : mixed

trace()

public static trace(mixed ...$args) : mixed
Parameters
$args : mixed

warning()

public static warning(mixed ...$args) : mixed
Parameters
$args : mixed

write()

public static write(mixed ...$args) : mixed
Parameters
$args : mixed

writeArray()

private static writeArray(mixed $prefix, array<string|int, mixed> $args) : mixed
Parameters
$prefix : mixed
$args : array<string|int, mixed>

        
On this page

Search results