PHP code example of lushobarlett / cologger

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

    

lushobarlett / cologger example snippets


$logger = new Logger;

$logger->error("error");
$logger->warning("warning");
$logger->notice("notice");
$logger->log("normal");

$logger = new Logger("mytarget.log");

$console = new Logger("doesn't matter", true);