<?php

require __DIR__ . '/../bootstrap.php';
$errosha = new \Errosha\ErrorHandler(new \Errosha\Display\ProductionDisplay());
$errosha->addLogger(new \Errosha\Logger\LoggerWIthErrorIn());
$a = $b;
Example #2
0
<?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';
Example #3
0
<?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();