Log message with time scale for standard levels
Seeren\Log is a PSR-3 logger interfaces implementation
composer require seeren/log
Log message in a Daily
, Monthly
or Yearly
generated file with optional data slug
use Seeren\Log\Logger\Daily;
$logger = new Daily();
By default, log folder is in /var/log
project/
└─ var/
└─ log/
Project directory can be specified at construction
use Seeren\Log\Logger\Daily;
$logger = new Daily('..');
Log using levels
use Seeren\Log\Logger\Daily;
$logger = new Daily();
$logger->log('info', 'Bob is logged');
Pass slug and context optionnaly
use Seeren\Log\Logger\Daily;
$logger = new Daily();
$logger->log('error', 'Something happen: {message}', [
'message' => 'Dummy message'
]);
This project is licensed under the MIT License