Easy integrate Logz.io into Laravel 5.6+ Application
Make logzio
driver for integrate Logz.io into Laravel Application
- php >=7.1.3
- Laravel 5.6+
Begin by pulling in the package through Composer.
$ composer require oanhnn/laravel-logzio
In config/logging.php
file, config you log with driver logzio
<?php
return [
// ...
'custom' => [
'driver' => 'logzio',
'name' => 'channel-name',
'token' => 'logz-access-token',
'type' => 'https-bulk',
'ssl' => true,
'level' => 'info',
'bubble' => true,
],
// ...
];
In your code using
Log::channel('custom')->info('Some message');
See more in Laravel document
See all change logs in CHANGELOG
$ git clone git@github.com/oanhnn/laravel-logzio.git /path
$ cd /path
$ composer install
$ composer phpunit
Please see CONTRIBUTING for details.
If you discover any security related issues, please email to Oanh Nguyen instead of using the issue tracker.
This project is released under the MIT License.
Copyright © 2018 Oanh Nguyen.