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

Ability to disable loggly logs (but preserve normal logging) after configuration #32

Closed tbrockman closed 9 years ago

tbrockman commented 9 years ago

I had the need to be able to disable logging based on whether or not a query parameter was set in the URL after configuration had already occurred, which required a function in the LogglyLogger service to set a boolean that would disable message sending if set to false. Don't know if this will be useful to anyone else or not.

ajbrown commented 9 years ago

@tbrockman Looks good! Thanks for the contribution.

I'll cut a release that includes this in a few days.

tbrockman commented 9 years ago

Happy to do it, thanks for the merge!