コード例 #1
0
<?php

require __DIR__ . '/../bootstrap.php';
$errosha = new \Errosha\ErrorHandler(new \Errosha\Display\ProductionDisplay());
$errosha->addLogger(new \Errosha\Logger\LoggerWIthErrorIn());
$a = $b;
コード例 #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';
コード例 #3
0
ファイル: fatal_with_mock.php プロジェクト: miknatr/errosha
<?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();