PHP code example of ampersand / magento2-log-correlation-id

1. Go to this page and download the library: Download ampersand/magento2-log-correlation-id library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ampersand / magento2-log-correlation-id example snippets

bash
php bin/magento setup:upgrade
xml
<type name="Ampersand\LogCorrelationId\Service\CorrelationIdentifier">
    <arguments>
        <argument name="identifierKey" xsi:type="string">your_key_name_here</argument>
    </arguments>
</type>