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

Tag support #26

Merged
merged 4 commits into from Jul 24, 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

@@ -14,6 +14,7 @@ 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' : 'javascript-logs'
});
</script>
```
@@ -48,3 +49,14 @@ myBetterLogger.push({'logglyKey': '8c518f97-e3e0-4bfb-a8ed-582d084a5289' }); //
Send Console Errors to Loggly
----
Keeping <strong>sendConsoleErrors</strong> value to <i>true</i> will send all the unhandled errors to the Loggly with the detailed information like error message, URL, line number and column number. This script also take cares of all the previously defined window.onerror functions.

Send Tags to Loggly
----

Send your custom tags to Loggly by setting the `tag` property.

```Javascript
_LTracker.push({
'tag' : 'tag1,tag2'
});
```
@@ -5,7 +5,7 @@
"_target": "*",
"_originalSource": "loggly-jslogger",
"_direct": true,
"version": "1.2.0",
"version": "2.0.0",
"description": "A Javascript client to send logs to Loggly.",
"main": "src/loggly.tracker.js",
"keywords": [
@@ -79,7 +79,7 @@ describe("loggly.tracker", function() {

var key = _LTracker.key;
expect(_LTracker.key).toBe(madeupKey);
expect(_LTracker.inputUrl).toContain(madeupKey + '.gif');
expect(_LTracker.inputUrl).toContain(madeupKey + '/tag');
expect(_LTracker.track).not.toHaveBeenCalled();

_LTracker.push({'logglyKey': originalKey}); // put it back to original state
@@ -1,6 +1,6 @@
{
"name": "loggly-jslogger",
"version": "1.2.0",
"version": "2.0.0",
"description": "A Javascript client to send logs to Loggly.",
"repository": {
"type": "git",
@@ -22,4 +22,4 @@
"scripts": {
"postinstall": "bower install"
}
}
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.