The project is developed using yii2 and needs to record all accessed access_log custom formats. Now we are encountering the following problems
Don’t know where to write a log?
I don’t know how to dynamically obtain the accessed controller action
The project is developed using yii2 and needs to record all accessed access_log custom formats. Now we are encountering the following problems
Don’t know where to write a log?
I don’t know how to dynamically obtain the accessed controller action
If it is not very complicated, you can directly use nginx’s access_log
You can print Yii::$app
to see that both `controller
and action