PHP code example of molajo / log

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

    

molajo / log example snippets



    // Connect to Log Handler
    use Molajo\Log\Connection;
    $adapter = new Connection('Memory');

    // Use connection for log operations
    $adapter->log($level, $message, $context = array());

    // Use connection to retrieve the entire log
    $log = $adapter->get();


    curl -s https://getcomposer.org/installer | php

{
    "  "Molajo/Log": "1.*"
    }
}

    php composer.phar install