Improved error/exception handler and logging

This commit is contained in:
Dmitry Khomutov 2014-03-20 22:17:54 +07:00
commit 1feb6d2ef6
3 changed files with 13 additions and 4 deletions

View file

@ -44,7 +44,7 @@ if (!file_exists(dirname(__FILE__) . '/vendor/autoload.php') && defined('PHPCI_I
require_once(dirname(__FILE__) . '/vendor/autoload.php');
$loggerConfig = LoggerConfig::newFromFile(__DIR__ . "/loggerconfig.php");
Handler::register($loggerConfig->getFor('Exceptions'));
Handler::register($loggerConfig->getFor('_'));
// Load configuration if present:
$conf = array();