Logger
in package
Provides functions to save logs.
Table of Contents
- __construct() : Database
- creates a new Logger instance
- log() : bool
- save a log on standard error_log
Methods
__construct()
creates a new Logger instance
public
__construct([array<string|int, mixed> $config = null ]) : Database
Parameters
- $config : array<string|int, mixed> = null
-
base configuration
Tags
Return values
Database —log()
save a log on standard error_log
public
log(string $tag, string $value[, mixed $object = null ][, int $priority = LOG_NOTICE ]) : bool
Parameters
- $tag : string
-
tag to wich save the log
- $value : string
-
value of the log
- $object : mixed = null
-
object to dump
- $priority : int = LOG_NOTICE
-
on wichh save the log
Tags
Return values
bool —result of save