yohns/e
最新稳定版本:0.1.1
Composer 安装命令:
composer create-project yohns/e
包简介
Error handler and logger
README 文档
README
An internal error handler and error logger.
Yohns\Core\E
include 'vendor/autoload.php'; use Yohns\Core\E; E::initiate([ // the directory to store the error logs in. 'dir' => __DIR__.'/logs', // default to display the errors 'display' => true, // what variables to store 'store' => [ // if any $_POST variable is set '_POST', // if any $_FILES variable is set '_FILES', // if any $_GET variable is set '_GET', // if any $_COOKIE variable is set, default this is not saved //'_COOKIE', // if any $_SESSION variable is set, default this is not saved //'_SESSION' ], ]); set_error_handler('Yohns\Core\E::errHandler'); set_exception_handler('Yohns\Core\E::excHandler');
Yohns\Core\Err
include 'vendor/autoload.php'; use Yohns\Core\Err; try { throw new Err("This is a custom error message."); } catch (Err $e) { echo $e->getDetailedMessage(); }
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-18