• 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

Call to a member function givePermissionTo() on null

Laravel Get Days In Month From Month Number?

Statement that checks whether a URL contains a particular path?

Redirect to previous page with php

Send same name multiple checkbox values via ajax

How can i call a function that executes an fpdf based on the choice of a form selector?

How Can I Do LIMIT 1, 2 In WP_Query

PHP: Calling MySQL Stored Procedure with Both INPUT AND OUTPUT Parameters (NOT "INOUT")

In PHP, which is faster: preg_split or explode?

Hide specific products from unlogged users based in product category in WooCommerce

PHP -> Next nearest date defined by array of days in week

Multiply each value in array using array_map function

How to fix bootstrap multiselect search data using ajax

How to disable only_full_group_by option in Laravel

I cannot create a auto generated date time in mysql workbench

About Contact Privacy policy Terms and conditions