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

Removed support for tag #14

Merged
merged 5 commits into from Mar 12, 2015
Merged
Changes from 3 commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -14,7 +14,6 @@ Place the following on your page, and replace the logglyKey value with the key p
_LTracker.push({
'logglyKey': '8c518f97-e3e0-4bfb-a8ed-582d084a5289',
'sendConsoleErrors' : true,
'tag' : 'jslogger'
});
</script>
```
@@ -15,9 +15,8 @@

function LogglyTracker() {
this.key = false;
this.sendConsoleErrors = false;
this.tag = 'jslogger';
}
this.sendConsoleErrors = false;
}

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

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;
+ LOGGLY_INPUT_SUFFIX;
}

LogglyTracker.prototype = {
@@ -95,15 +89,11 @@
return;
}

if(data.sendConsoleErrors !== undefined) {
setSendConsoleError(self, data.sendConsoleErrors);
}
if(data.sendConsoleErrors !== undefined) {
setSendConsoleError(self, data.sendConsoleErrors);
}

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

if(data.logglyKey) {
if(data.logglyKey) {
setKey(self, data.logglyKey);
return;
}
@@ -128,7 +118,7 @@

try {
var im = new Image(),
q = 'PLAINTEXT=' + encodeURIComponent(JSON.stringify(data));
q = 'PLAINTEXT=' + encodeURIComponent(JSON.stringify(data));
im.src = this.inputUrl + q;
} catch (ex) {
if (window && window.console && typeof window.console.log === 'function') {
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.