PHP code example of oshco / db-exceptions-logger
1. Go to this page and download the library: Download oshco/db-exceptions-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/ */
oshco / db-exceptions-logger example snippets
bash
php webfiori run-query --schema="oshco\database\logger\ExceptionsDB" --connection=<your-connection>
php
\webfiori\error\Handler::registerHandler(new \oshco\handler\DatabaseErrHandler(new oshco\database\logger\ExceptionsDB()));