• 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 error: "The zip extension and unzip command are both missing, skipping."

How to add class name to an existing tag in php

Image upload not working through ajax Laravel

PHP: How to solve ob_start() in combination imagepng() issue?

How to unlink image from folder?

backup files to google drive using PHP

php retrieve specific data onclick from database in a list format

Accessors (Getter) & Mutators (Setter) On a Pivot Table in Laravel

Laravel PackageManifest.php: Undefined index: name

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

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

Redirect to previous page with php

Entity provider not working in security.yml php symfony3.4 ({"code":401,"message":"bad credentials"}.)

Respond with status code 401 on authentication failure using Laravel and Passport?

Prestashop cUrl Login

About Contact Privacy policy Terms and conditions