Bundle provides the ability to track Process Correlation Id and store it in logs
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Open a command console, enter your project directory and execute:
$ composer require pinai4/process-correlation-id-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
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],
];
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