muchrm / laravel-influxlog
Log your Laravel application errors to InfluxDB
0.9.2
2018-08-28 17:52 UTC
Requires
- php: >=5.6.0
- illuminate/http: 5.*
- illuminate/support: 5.*
- influxdb/influxdb-php: ^1.14
- monolog/monolog: ^1.20
- psr/log: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.0
- orchestra/testbench: ~3.0
- phpunit/phpunit: ^5.7
This package is not auto-updated.
Last update: 2024-12-12 01:16:56 UTC
README
##Notic This is recieve inspiration from swisnl/laravel-graylog2 i'm using it on my project Don't use me yet.
Installation
- Run composer require for this package:
composer require muchrm/laravel-influxlog
- Add the service provider to app.php if you don't like auto discovery:
Muchrm\InfluxLog\InfluxLogServiceProvider
- Run
php artisan vendor:publish
to publish the config file to ./config/influxlog.php. - Configure it to your liking
- Done!
Logging exceptions
The default settings enable logging of exceptions. It will add the HTTP request to the GELF message, but it will not add POST values. Check the graylog2.log-requests config to enable or disable this behavior.
Message Processors
Processors add extra functionality to the handler. You can register processors by modifying the AppServiceProvider:
public function register() { //... InfluxLog::registerProcessor(new \Muchrm\InfluxLog\Processor\ExceptionProcessor()); InfluxLog::registerProcessor(new \Muchrm\InfluxLog\Processor\RequestProcessor()); InfluxLog::registerProcessor(new MyCustomProcessor()); //... }