pinai4 / process-correlation-id-bundle
Provides the ability to track Process Correlation Id and store it in logs
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^8.0
- symfony/console: ^4.4 || ^5.0 || ^6.0
- symfony/framework-bundle: ^4.4 || ^5.0 || ^6.0
- symfony/messenger: ^4.4 || ^5.0 || ^6.0
- symfony/monolog-bundle: ^3.8
Requires (Dev)
- matthiasnoback/symfony-dependency-injection-test: ^4.3
- nyholm/symfony-bundle-test: ^2.0
- symfony/phpunit-bridge: ^4.4 || ^5.0 || ^6.0
README
Bundle provides the ability to track Process Correlation Id and store it in logs
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
$ composer require pinai4/process-correlation-id-bundle
Applications that don't use Symfony Flex
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:
$ composer require pinai4/process-correlation-id-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:
// config/bundles.php return [ // ... Pinai4\ProcessCorrelationIdBundle\Pinai4ProcessCorrelationIdBundle::class => ['all' => true], ];
Configuration
Monolog field name for ProcessCorrelationId value can be configured directly by
creating a new config/packages/pinai4_process_correlation_id.yaml
file.
You can also enable/disable all bundle features from this file. The
default values are:
# config/packages/pinai4_process_correlation_id.yaml pinai4_process_correlation_id: # You can enable/disable all bundle features enabled: true # You can customize monolog field name which will show ProcessCorrelationId value log_field_name: process_correlation_id