• 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 Discord OAUTH2 code sample not working

Using array_intersect on a multi-dimensional array

CodeIgniter extend CI_URI undefined method

How can i hide dt if dd got empty value

Display Brand Name Above Product Title in Woocommerce Cart, Checkout Page, Orders and Email Notification

PHP: How to raise number to (tiny) fractional exponent?

yii2 and mssql insert varbinary into model

Laravel SQL query midnight time not showing

Testing subscription renewals on Stripe

Appending data to an anchor tag

Laravel MSSQL Server Connection not working

How to upload mpdf file after generating to s3 bucket in php

Insert database rows from columns of data from associative array of indexed arrays

PHP Imap , php 7.4.3 on mac osx catalina

backup files to google drive using PHP

About Contact Privacy policy Terms and conditions