• 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

Center point of multiple gps coordinates with php

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

Laravel Livewire: jQuery not working in child component loaded via @if statement

Combine array with same value and add other [duplicate]

PHP: PDO + CSV export not downloading (headers issue?)

How to get the total hour from starting time to end time in php

Getting output of MS stored procedure on php call

PHP usort() order in case of equality

insert multiple rows in a saveall in cakephp

How can I get data from PHP to Android TextView?

How to get page number on dompdf PDF when using "view"

Login if user is active using Laravel Breeze

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

How to delete old images from public folder on update using Laravel

About Contact Privacy policy Terms and conditions