How to log Client Side exceptions in StackExchange.Exceptional?

落花浮王杯 提交于 2019-12-23 18:44:56

问题


I am working on a web project and implemented StackExchange.Exceptional for server exceptions logging. I am just wondering if I could log my client side exceptions as well through StackExchange.Exceptional.

Is there any way to use this library for client-side exceptions logging?


回答1:


As far as client side logging is concerned there is no mechanism as per my knowledge. Because the developer never maintain any database of stuff on client side. Even if you save exception in client side storage that wont be a centralized approach and how will you be getting back again?

What you can do By client side you can log javascript's specific scenarios/Exceptions via Ajax Calls to your server in the same error logging module that you are using for server error logs and saving those exception you want to log in your database to have their centralized record.



来源:https://stackoverflow.com/questions/43134563/how-to-log-client-side-exceptions-in-stackexchange-exceptional

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!