Download the PHP package playtini/logger-extra-bundle without Composer
On this page you can find all versions of the php package playtini/logger-extra-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download playtini/logger-extra-bundle
More information about playtini/logger-extra-bundle
Files in playtini/logger-extra-bundle
Package logger-extra-bundle
Short Description Add logs additional info
License proprietary
Informations about the package logger-extra-bundle
Logger Extra Bundle
Add logs extra information with symfony/monolog-bundle. Using Gelf and Logstash to send/receive logs via UDP protocol
Installation
Step 1: Prepare config
Make sure symfony/monolog-bundle is installed.
Add env vars:
SERVICE_NAME
: service nameLOGSTASH_HOST
: logstash hostLOGSTASH_PORT
: logstash port
Add to config/service.yaml
:
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Usage
Additions
Add custom data in each log entry.
Loggers
By default, the bundle provides several loggers:
- on_command (create a log entry with the cli data)
- on_request (create a log entry with the request/response data)
Add config to include them:
All versions of logger-extra-bundle with dependencies
symfony/config Version ^5.2|^6.0|^7.1
symfony/dependency-injection Version ^5.2|^6.0|^7.1
symfony/event-dispatcher Version ^5.2|^6.0|^7.1
symfony/http-kernel Version ^5.2|^6.0|^7.1
symfony/console Version ^5.2|^6.0|^7.1
symfony/yaml Version ^5.2|^6.0|^7.1
graylog2/gelf-php Version ^1.7|^2.0
ext-json Version *