PHP code example of canteen / logger
1. Go to this page and download the library: Download canteen/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/ */
canteen / logger example snippets
use Canteen\Logger;
Logger.init();
echo Logger::instance()->render();
// Most general trace statement
trace('Logger setup!');
// You can pass arrays or objects to the trace output
info(array(10, 100, 1000));