Answer the question
In order to leave comments, you need to log in
How to add your information to the logs?
I have this configuration
'log' => [
'traceLevel' => YII_DEBUG ? 3 : 0,
'targets' => [
'access' => [
'class' => 'app\components\DBLog',
'levels' => ['info', 'warning'],
'categories' => ['access'],
'logVars' => ['_POST', '_GET'],
],
Answer the question
In order to leave comments, you need to log in
as an option, store this information in the session, and then output the session to the logs
'logVars' => ['_POST', '_GET', '_SESSION'],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question