javascript - Angularjs Error Logging -


currently using stacktrace.js logging errors in angularjs app below

app.factory('$exceptionhandler', ['errorlogservice',function (errorlogservice) {    return function (exception, cause) {      errorlogservice.log(exception.message, cause);      };  } ]); 

this service log every error occurred in app. question is, can choose types or levels of errors logged? i'm pretty sure i'm logging every damn thing! causing lot of headaches..

afaik stacktrace.js has no feature specify types or levels of errors logged. because js has no standard error type or error level. script error error - that's all! having said - problem seems in coding style. why should there many errors thrown in js code? many errors in js code clutter whole console , make logging useless. solution can think of fix errors logs cleaner. there should 0 such errors in console before go live - if have tested code properly.


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -