Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support to tag #8

Merged
merged 3 commits into from Jan 6, 2015
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -13,7 +13,8 @@ Place the following on your page, and replace the logglyKey value with the key p
var _LTracker = _LTracker || [];
_LTracker.push({
'logglyKey': '8c518f97-e3e0-4bfb-a8ed-582d084a5289',
'sendConsoleErrors' : true
'sendConsoleErrors' : true,
'tag' : 'jslogger'
});
</script>
```
@@ -16,6 +16,7 @@
function LogglyTracker() {
this.key = false;
this.sendConsoleErrors = false;
this.tag = 'jslogger';
}

function setKey(tracker, key) {
@@ -47,12 +48,17 @@
};
}
}

function setTag(tracker, tag){
tracker.tag = tag;
}

function setInputUrl(tracker) {
tracker.inputUrl = LOGGLY_INPUT_PREFIX
+ (tracker.logglyCollectorDomain || LOGGLY_COLLECTOR_DOMAIN)
+ '/inputs/'
+ tracker.key
+ '/tag/'+tracker.tag+'/'
+ LOGGLY_INPUT_SUFFIX;
}

@@ -92,6 +98,10 @@
if(data.sendConsoleErrors !== undefined) {
setSendConsoleError(self, data.sendConsoleErrors);
}

if(data.tag){
setTag(self, data.tag);
}

if(data.logglyKey) {
setKey(self, data.logglyKey);
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.