PHP code example of afi / solo-logger
1. Go to this page and download the library: Download afi/solo-logger 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/ */
afi / solo-logger example snippets
`
::init();
$logger = Logger::get();
$e = new RuntimeException("Error");
$arr = array("key" => "val", "key1" => 928);
$obj = new stdClass();
$obj->attribute = "value";
$l->error("Error!", $e);
$l->debug("Dump an array", $arr);
$l->debug("Write some object", $obj);