Normally client side error logging is not much popular. But with the rise of JavaScript libraries like Reactjs, Angular and etc. it is necessary to have logs file. Because we don't know what kind of errors may generate on client side because after first time loads the application all the processes will done through API.
Let's take a example. Consider ReactJs web Application build using relay and GraphQl. When application needs data you can query required data using relay. Only errors caused when queering data from server side can be logged to file and check whether what kind of errors does application generate when app is on production. But when ReactJs web application is not just queering data from server and showing it to user. IT is much more than that. Because with data Reactjs can do awesome Look and feel to end user. User have beautiful Web Application to work with. As a developer or a tester you may not covered all the tests to make it sure that application wan't fail. If web application cause error due to your JavaScript code how could you log that a file without causing users interaction. And the other thing is when creating ReactJs web application we are using lots of other libraries to build it. We cannot guaranteed that those libraries wan't cause any errors during execution. If do they create errors and fail the application and your customers may leave and you had to face lots of problems without knowing why the left. Not only error logging you can log important event that users do in order to make your application more user friendly. Using that you can identify users flow and their behavior using logs. You can filter information logs and errors logs from logging system that I going to tell you. Why are we waiting lets start Logging Client Side Errors to a Rotatable File using ReactJs and NodeJs with Ease. Get Started Now
0 Comments
|
AuthorJust a teenage blog writer interested in reactjs Archives
January 2018
Categories |