PHP code example of ehough / epilog
1. Go to this page and download the library: Download ehough/epilog 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/ */
ehough / epilog example snippets
// create a log channel
$log = new ehough_epilog_Logger('name');
$log->pushHandler(new ehough_epilog_handler_StreamHandler('path/to/your.log', ehough_epilog_Logger::WARNING));
// add records to the log
$log->addWarning('Foo');
$log->addError('Bar');
$logger = ehough_epilog_LoggerFactory::getLogger('name');