Logger
MaplePHP PSR-3 Logger library – your reliable companion for efficient logging in PHP applications. This library adheres to the PSR-3 standard, providing a seamless and standardized approach to logging
Log-levels
Logger in provider
$this->provider->logger()->warning("The user {firstname} has been added.", ["firstname" => "John", "lastname" => "Doe"]);Stream/file handler
Add namespaces
Create simple stream logger
Rotatable log files
Database handler
Add namespaces
1. Connect to the database.
2. Create database table
3. Write to database log
PHP error log handler (error_log())
Add namespaces
Last updated