Logger
in package
FinalYes
Logger. Write logs to the file defined in `application/config/config.php#log_path`.
Table of Contents
Methods
- debug() : void
- Debug log.
- display() : void
- Log to browser or console.
- error() : void
- Error log.
- info() : void
- Info log.
- createMessage() : string
- Create a log message.
Methods
debug()
Debug log.
public
static debug(mixed ...$params) : void
Parameters
- $params : mixed
-
Log Message.
display()
Log to browser or console.
public
static display(mixed ...$params) : void
Parameters
- $params : mixed
-
Log Message.
error()
Error log.
public
static error(mixed ...$params) : void
Parameters
- $params : mixed
-
Log Message.
info()
Info log.
public
static info(mixed ...$params) : void
Parameters
- $params : mixed
-
Log Message.
createMessage()
Create a log message.
private
static createMessage(array<string|int, mixed> $params, array<string|int, mixed>|null $trace[, bool $isBrowser = false ]) : string
Parameters
- $params : array<string|int, mixed>
-
Log Message.
- $trace : array<string|int, mixed>|null
-
(optional) Stack traces.
- $isBrowser : bool = false
-
(optional) If true, escapes HTML special characters in log messages. Default is false.
Return values
string —Log Message.