How to get Yii2 formatted error message in production systems? -


when yii2 used in debug mode , error occurs, shows error message along call trace, session, cookie , server info.

sample image shown below.

enter image description here

in production ready systems, not shown. however, there way pull formatted html variable in production systems, can emailed developer ease in debugging errors. if 1 has idea, please let me know.

i tried using \yii::$app->mailer->render() passing @vendor/yiisoft/yii2/views/errorhandler/exception.php view, ['exception => $ex] data, layout file parameters. i'm getting undefined variable handler error.

config log targets purpose:
http://www.yiiframework.com/doc-2.0/guide-runtime-logging.html


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -