ajbrown / angular-loggly-logger

An AngularJS module which sends your $log message to loggly, and provides a service for manually sending messages to loggly.
MIT License
32 stars 49 forks source link

Fake logging events? #55

Open beeekind opened 8 years ago

beeekind commented 8 years ago

First off I apologize if this is a naive question but, if this is entirely client-sided, couldn't a malicious user send fake logs or an absurd number of logs trivially via just using the chrome console? I'd love, love, love, to include client side logs to my log aggregation, but it seems like a huge risk to me.

ajbrown commented 8 years ago

Hi @bjones6. That's certainly a risk you take by doing things on the client side. The other risk is that your logging endpoint is exposed as well, so it can even be done offline.

I'm not really sure of a good way around this. Maybe someone else might chime in.

I'd suggest you make sure you're using a separate log stream for client side logging, and consider the logs through that stream as disposable.