9 ms·
Not too sure about Angular / JS, but instead of console.log() I'd use something that you can determine a log level for i.e. console.error / console.info / conso
by tcbasche 7y ago
Not too sure about Angular / JS, but instead of console.log() I'd use something that you can determine a log level for i.e. console.error / console.info / console.debug.
Then you can determine what to ship out to a logging tool like logstash/logdna based on the environment.
Edit: Something like this https://www.scalyr.com/blog/getting-started-angular-logging/ https://www.scalyr.com/blog/getting-started-angular-logging/