How to catch all exceptions in one place in Yii2

Hi Friends,

How to catch all exceptions in one place?

I want to send an email if exceptions occur anywhere in the project.

I am using #Yii2

Please let me know if you have any ideas about this.

https://www.yiiframework.com/doc/api/2.0/yii-log-emailtarget

1 Like