triadev/laravel-logger-provider

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

A laravel service provider for logging.

v1.2.2 2018-05-10 08:59 UTC

This package is auto-updated.

Last update: 2021-10-16 17:45:51 UTC


README

Software license Latest stable Monthly installs Travis

A laravel and lumen service provider for logging.

Main features

  • Stream
  • Logstash

Installation

Composer

composer require triadev/laravel-logger-provider

Application

Register the service provider in the config/app.php (Laravel) or in the bootstrap/app.php (Lumen).

'providers' => [
    \Triadev\Logger\Provider\LoggerServiceProvider::class
]

Once installed you can now publish your config file and set your correct configuration for using the package.

php artisan vendor:publish --provider="Triadev\Logger\Provider\LoggerServiceProvider" --tag="config"

This will create a file config/sc-logger.php.

Configuration

Key Value Description
LOG_TYPE STRING stream or logstash
LOG_STREAM STRING php://stdout, ...
LOG_LEVEL STRING debug,error, ...

Reporting Issues

If you do find an issue, please feel free to report it with GitHub's bug tracker for this project.

Alternatively, fork the project and make a pull request. :)

Other

Project related links

Author

License

The code for LaravelLoggerProvider is distributed under the terms of the MIT license (see LICENSE).