nsrosenqvist / soma-logger
Monolog integrated with the SOMA framework
1.0.0
2020-06-09 13:00 UTC
Requires
- php: >=7.0.0
- illuminate/support: ^7.0
- monolog/monolog: ^2.0
This package is auto-updated.
Last update: 2024-12-09 23:08:49 UTC
README
Installation
composer require nsrosenqvist/soma-logger
Usage
First register the service provider. By default configuration goes in config/app.php
. If you want anything other than simple file logging you need to connect a Monolog handler to the SOMA exception handler (view source of LoggerProvider.php
) or disable the built-in exception handler by setting the config value app.catch-exceptions
to false
.
Example configuration:
<?php return [ 'log' => [ 'debug' => storage_path('logs/debug.log'), 'info' => storage_path('logs/info.log'), 'error' => storage_path('logs/error.log') ], ];
License
MIT