• 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

PHP, how to convert Int value to Week days

shell errors running php exec

Laravel 5.1 Unknown database type enum requested

I cannot create a auto generated date time in mysql workbench

PHPExcel How to set conditional formatting to change cell background color based on cells values

Laravel php artisan serve to mimic HTTPS

php mysql + create a friend request system

The "client_reference_id" argument is not passed

PHP - CURL using HTTPS [closed]

how to get value from array in laravel

Populate Dynamic Dropdowns List in Codeigniter

sort() not affecting original array while inside foreach loop

Login if user is active using Laravel Breeze

generating a random code in php?

Prevent blank space in pdf pages (DomPdf)

About Contact Privacy policy Terms and conditions