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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -