• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Yii2: How do I debug console commands?

phpdebuggingconsoleyii2command-line-interface


PHP Snippet 1:

'log' => [
'targets' => [[
    ...
], [
    'class' => 'yii\log\FileTarget',
    'logFile' => '@runtime/logs/profile.log',
    'logVars' => [],
    'levels' => ['profile'],
    'categories' => ['yii\db\Command::query'],
    'prefix' => function($message) {
        return '';
    }
]]

PHP Snippet 2:

[
    'class' => 'yii\log\FileTarget',
    'levels' => ['info', 'error', 'warning'],
],

Related Snippets

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

PHP Get value from JSON [duplicate]

file_put_content...fail to open stream:Permission denied in Laravel 5

JSON Render Issue in Date Object Laravel and PHP 7.4

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

Yii2 select2 database exception number of bound variables does not match number of tokens

Laravel insert dynamic input values with radio button

What is my SQL missing?

Laravel - Implicit route model binding with soft deleted data

Yii2 select2 database exception number of bound variables does not match number of tokens

how to get the header value, if we don't know the value because the value is random from the server

How to unlink image from folder?

How to convert the int value to inch in PHP [closed]

How to debug in WooCommerce 3+

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

About Contact Privacy policy Terms and conditions