• 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

Transpose and flatten multiple rows of array data [duplicate]

How to load Codeigniter 4 lang file into an array variable

how to retrieve the first and last instance of a row in pdo dataset

Doctrine 2 mapping referencing unique key

PHP Sorting - getting 10, 11, 12 ... 1, 20, 2 rather than 1, 10, 11, 12 ... 2, 20

How do I call a php file with axios?

javascript html popup window

Remove categories with all childs derived from parent category

Mysqli Output to a table

Get number of working days between two dates in PHP [duplicate]

How can i hide dt if dd got empty value

get attribute from class not working php 7

getting error while enter Command => php artisan route:list

PHP Print to Network Printer

Correct way to use LIKE '%{$var}%' with prepared statements?

About Contact Privacy policy Terms and conditions