<?php require __DIR__ . '/../bootstrap.php'; $errosha = new \Errosha\ErrorHandler(new \Errosha\Display\ProductionDisplay()); $errosha->addLogger(new \Errosha\Logger\LoggerWIthErrorIn()); $a = $b;
<?php require __DIR__ . '/../bootstrap.php'; $errosha = new \Errosha\ErrorHandler(new \Errosha\Display\TextDisplay()); $errosha->addLogger(new \Errosha\Logger\FileLogger(__DIR__ . '/../test.log')); $errosha->setIgnoreLevels(array(E_DEPRECATED)); ereg('test', ''); echo 'All right';
<?php require __DIR__ . '/../bootstrap.php'; $errosha = new \Errosha\ErrorHandler(new \Errosha\Display\ProductionDisplay()); $errosha->addLogger(new \Errosha\Logger\FileLogger(__DIR__ . '/../test.log')); $a = null; $a->something();