• 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

Laravel You requested 1 items, but there are only 0 items available

Shopify password update using Shopify API

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: 'column_name' in Laravel

sort() not affecting original array while inside foreach loop

laravel 5.6 bulk inserting json data

PHP Get value from JSON [duplicate]

How to create a video stream from a single dynamic image in PHP

PHP Find Array Index value in multi-line array

Warning: mysqli_stmt::bind_param(): Number of elements in type definition string doesn't match number of bind variables 11 [closed]

WooCommerce: Add/display Product or Variation custom field everywhere

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

curl returning 301 error after migrating to https

How do I get friend list from Friends table with counts of friends of my friends

Google API Heatmap Layer exception, why?

How to create laravel storage symbolic link for production or sub domain system?

About Contact Privacy policy Terms and conditions