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

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

javascript - Handling constructor related functions while testing with mocha and sinon -