定制 oshco/db-exceptions-logger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

oshco/db-exceptions-logger

最新稳定版本:v1.2.0

Composer 安装命令:

composer require oshco/db-exceptions-logger

包简介

A component which is used to log exceptions to database.

README 文档

README

A WebFiori framework extension which is used to log exceptions to database. The library currently supports SQL Server only.

Configuration

  • Add dependency
  • Initialize database
  • Set errors handler

First, include this library in your project by adding the following dependency:

oshco/db-exceptions-logger

To initialize the table which is used to store exceptions, run following command:

php webfiori run-query --schema="oshco\database\logger\ExceptionsDB" --connection=<your-connection>

Replace your-connection with the database connection to be used by the class. Note that the class will try to use a connection with the name exceptions-logger if no connection provided.

To set errors handler, place following code in any of the initialization files:

\webfiori\error\Handler::registerHandler(new \oshco\handler\DatabaseErrHandler(new oshco\database\logger\ExceptionsDB()));

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-20