承接 yohns/e 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-18