Skip to content

Latest commit

 

History

History
90 lines (61 loc) · 2.24 KB

README.md

File metadata and controls

90 lines (61 loc) · 2.24 KB

Introduction

Latest Version Software License Build Status Coverage Status Total Downloads Requires PHP

Easy integrate Logz.io into Laravel 5.6+ Application

Main features

Make logzio driver for integrate Logz.io into Laravel Application

Requirements

  • php >=7.1.3
  • Laravel 5.6+

Installation

Begin by pulling in the package through Composer.

$ composer require oanhnn/laravel-logzio

Usage

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

Changelog

See all change logs in CHANGELOG

Testing

$ git clone git@github.com/oanhnn/laravel-logzio.git /path
$ cd /path
$ composer install
$ composer phpunit

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email to Oanh Nguyen instead of using the issue tracker.

Credits

License

This project is released under the MIT License.
Copyright © 2018 Oanh Nguyen.