error500/yii2-debug-cli

安装: 30

依赖者: 0

建议者: 0

安全: 0

星星: 0

关注者: 0

分支: 4

类型:yii2-extension

0.0.6 2022-10-21 15:10 UTC

This package is auto-updated.

Last update: 2024-09-21 19:20:05 UTC


README

描述

模块,用于在/debug目录中揭示CLI脚本(如果需要的话)

希望它对您有所帮助。

安装

安装此扩展的首选方式是通过composer。

{
	"require": {
	    "error500/yii2-debug-cli": "@dev"
    }
}

或者

	composer require error500/yii2-debug-cli "@dev"

使用方法

要开始使用它,请将其添加到您的模块部分

例如

'debug' => [
    'class' => 'error500\debug\Module',
    'logTarget' => 'error500\debug\LogTarget',
],

在高级模板中,我(个人)在common/config/main.php中使用它

在基本模板中,我(从未这样做过)将其同时放入config/web.php和config/console.php中(等待反馈)

错误中心的使用

  1. 使用以下命令迁移:./yii migrate/up -p vendor/error500/yii2-debug-cli/migrations
  2. 为了覆盖所有入口点,建议在主配置中定义分发器
  • 在高级模板中,我(个人)在common/config/main.php中使用它
  • 在基本模板中,我(从未这样做过)将其同时放入config/web.php和config/console.php中(等待反馈)
'components' => [
    'log' => [
        'class' => '\error500\debug\log\Dispatcher',
        //...
    ],
    //...
]
  1. 使用它。/debug/error-hub