PSR-3 versions

Because we understand every project, plugin, theme or library haven’t the same requirements as others, We’ve made WordPress DecaLog SDK compatible with both major versions of PSR-3: version 1 and version 3.

By default, WordPress DecaLog SDK 5 uses PSR-3 version 1. If you have no particular requirements regarding this version, you can use and deploy WordPress DecaLog SDK as it is: you don’t need to do anything else.

However, if you wish to use the flexibility of version selection, proceed as follows:

Forcing PSR-3 version 3

If you want the SDK (and DecaLog) to use PSR-3 version 3, simply add this line of code to the wp-config.php file:

<?php
    
    define( 'DECALOG_PSR_LOG_VERSION', 'V3' );
Code language: PHP (php)

Using the already loaded version

If a library has already loaded PSR-3 before the SDK was initialized, you can ask the SDK to use this version. To do this, just add this line of code to the wp-config.php file:

<?php
    
    define( 'DECALOG_PSR_LOG_VERSION', 'AUTO' );
Code language: PHP (php)