PHP code example of imponeer / log-data-output-decorator

1. Go to this page and download the library: Download imponeer/log-data-output-decorator 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/ */

    

imponeer / log-data-output-decorator example snippets


$output = new \Imponeer\Decorators\LogDataOutput\OutputDecorator(
   new \Symfony\Component\Console\Output\BufferedOutput();
);
$output->info('test');
$output->incrIndent();
$output->info('#1');
$output->info('#2');