gel/error-logging 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gel/error-logging

Composer 安装命令:

composer require gel/error-logging

包简介

Logging for PHP 5.3

关键字:

README 文档

README

Install

Include gel/error-logging in your composer.json.

   {
    "require": {
        "gel/error-logging": "1.4"
    }
   }

Then do a validate/update.

 composer validate
 composer install --no-dev

Or use this command.

 composer require gel/error-logging

Usage

Create a new instance of the class, and choose where the file will be logged via the constructor.

 $myErrorLogger = new gel\logger\ErrorLogger('tmp/example/example.log.php');

Error messages will be removed by default. If you wanna turn them on simple call the function displayErrors.

$myErrorLogger->displayErrors(true)

You cant generate an error by using the function trigger_error.

trigger_error("Error is triggerd", E_USER_ERROR);

Error reporting is set to -1, but you can change it via changeErrorReporting function.

$myErrorLogger->changeErrorReporting("E_ERROR | E_WARNING");

Like always, try to create an instance of this class as early as possible.

统计信息

  • 总下载量: 19
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固