yagas/yii2-debug4mongo Yii2 Debug for MongoDB

993323

Yii 2 Debug For MongoDB

  1. 目录结构
  2. 安装依赖
  3. 安装说明
  4. 配置说明

本项目为yii2-debug的扩展,使用MongoDB对debug数据进行存储。

目录结构

  src/                 代码目录
  src/models/          数据模型
  src/views/           视图文件
  src/controllers/     控制器

安装依赖

  • PHP支持>=5.4
  • yii2-mongodb
  • yii2-debug支持>=2.1.25(基于此版本构建而来)

安装说明

composer require yagas/yii2-debug4mongo

配置说明

if (YII_ENV_DEV) {
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = [
        'class' => 'yagas\debug\Module',
        'logTarget' => [
            'class' => 'yagas\debug\LogTarget',
            'app_no' => 'localhost_001', // 为当前站点设定标识
        ],
        'percent' => 10, // 百分之十的几率清除历史数据(GC)
    ];
}
0 0
1 follower
7 downloads
Yii Version: Unknown
License: MIT
Category: Logging
Developed by: yagas
Created on: Jun 22, 2024
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions