abacaphiliac/doctrine-psr-sql-logger 问题修复 & 功能扩展

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

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

abacaphiliac/doctrine-psr-sql-logger

Composer 安装命令:

composer require abacaphiliac/doctrine-psr-sql-logger

包简介

PSR-3 Compliant Doctrine SQL Logger

README 文档

README

PSR-3 Compliant Doctrine SQL Logger

Scrutinizer Code Quality Code Coverage Build Status

Installation

composer require abacaphiliac/doctrine-psr-sql-logger

Usage

The following configuration snippet will log the query with its parameter types and execution duration. In general, this will be safe to use with parameterized queries, since values will not be printed to the log stream.

$logger = new \Psr\Log\NullLogger(); // Get your real logger(s) from a container.
$configuration = new \Doctrine\DBAL\Configuration();
$configuration->setSQLLogger(new \Abacaphiliac\Doctrine\PsrSqlLogger($logger));

The following snippet will additionally log parameter values. Be careful to handle sensitive data appropriately.

$logger = new \Psr\Log\NullLogger(); // Get your real logger(s) from a container.
$configuration = new \Doctrine\DBAL\Configuration();
$configuration->setSQLLogger(new \Abacaphiliac\Doctrine\PsrSqlParamsLogger($logger));

Contributing

composer update && composer build

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固