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

Allow service to update token #28

Closed brennon closed 8 years ago

brennon commented 8 years ago

I have a need to set the input token with a value received from an API call. Injecting $http into LogglyLoggerProvider's config() isn't possible, and updating the token through the service wasn't possible, either (or, I wasn't able to figure out how to do so.) This commit exposes an inputToken() method on the service that allows the consumer to update the token after configuration.

ajbrown commented 8 years ago

@brennon thanks for this contribution! Can you re-open a pull request targeting the develop branch? I'll cut a release from there in a few days once it's been pulled in.

brennon commented 8 years ago

Done!