Download the PHP package vmorozov/laravel_fluentd_logger without Composer
On this page you can find all versions of the php package vmorozov/laravel_fluentd_logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vmorozov/laravel_fluentd_logger
More information about vmorozov/laravel_fluentd_logger
Files in vmorozov/laravel_fluentd_logger
Package laravel_fluentd_logger
Short Description Provides ability to use fluentd as log driver.
License MIT
Homepage https://github.com/:vendor_slug/:package_slug
Informations about the package laravel_fluentd_logger
vmorozov/laravel_fluentd_logger
This package provides ability to use fluentd as log driver. It also add additional logging capabilities such as:
- Request log
- DB Query log
- Queue Jobs log
- Log tracing
Installation
You can install the package via composer:
You can publish the config file with:
Add middlewares to app/Http/Kernel.php
:
Add fluentd log channel to config/logging.php
:
Add ENV vars with fluentd configs:
Configuration
In config file laravel_fluentd_logger.php
you can make some adjustments:
-
Disable some features
-
Overwrite default fluentd log handler
-
Change log tag format
- Overwrite some options for fluentd sdk classes
Fluentd config samples
-
simple stdout output:
-
output to elasticsearch + stdout:
- config for fluentd to accept data using port:
More info about fluentd configuration can be found in official fluentd documentation.
Monolog processors
You can add processors to the monolog handlers by adding them to the processors
array within the laravel_fluentd_logger.php
config.
config/laravel_fluentd_logger.php:
CustomProcessor.php:
Testing
Credits
- Vladimir Morozov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel_fluentd_logger with dependencies
spatie/laravel-package-tools Version ^1.13.0
illuminate/contracts Version ^9.0
fluent/logger Version ^1.0
monolog/monolog Version ^2.0