PHP code example of madebyextreme / exceptions-to-stream
1. Go to this page and download the library: Download madebyextreme/exceptions-to-stream 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/ */
madebyextreme / exceptions-to-stream example snippets
use madebyextreme\exceptionstostream\ExceptionsToStream;
public function bob()
{
ExceptionsToStream::getInstance()->log->debug('message');
ExceptionsToStream::getInstance()->log->info('message');
ExceptionsToStream::getInstance()->log->notice('message');
ExceptionsToStream::getInstance()->log->warning('message');
ExceptionsToStream::getInstance()->log->error('message');
ExceptionsToStream::getInstance()->log->critical('message');
ExceptionsToStream::getInstance()->log->alert('message');
ExceptionsToStream::getInstance()->log->emergency('message');
}