S
S
Sergey Beloventsev2017-10-16 18:46:30
Yii
Sergey Beloventsev, 2017-10-16 18:46:30

Why is debug not being logged?

Actually the question in the following last entry in the debug occurred on September 28th. Do not tell me why and where to look?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-10-16
@Sergalas

1. option, no write permissions to the runtime folder and its children, in this case debug and log
2. We climb into the config and see what's here:

'log' => [
            'traceLevel' => 3,
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],

If there is 0 instead of 3 (example), then logging is not performed. Well, we look at the rest of the settings or put it here
3. check if debug is enabled in principle

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question