tredmann / monolog-pdo-sqlite
There is no license information available for the latest version (1.0.0) of this package.
1.0.0
2025-04-14 18:37 UTC
Requires
- ext-pdo: *
Requires (Dev)
- laravel/pint: ^1.22
- monolog/monolog: ^3.9
- phpunit/phpunit: ^12.1
README
The handler is intented for local development, so that developers have an easy way to look into structured logs.
Installation
You can install the monolog pdo sqlite hanlder via composer
composer require tredmann/monolog-pdo-slite
Migrate the database
To create the database you can initial the handler and then
use the up
function.
$handler = new SQLiteHandler(filePath: __DIR__.'/test.sqlite'); $handler->up();
Using the handler in monolog
$log = new Logger(name: 'test'); $log->pushHandler($handler);
Acknowledgements
The up and down functions were inspired by https://github.com/bayfrontmedia/monolog-pdo