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

Updated setConsoleErrors to sendConsoleErrors and updated Readme #7

Merged
merged 2 commits into from Dec 11, 2014
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,11 +13,10 @@ 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',
'setConsoleError' : true
'sendConsoleErrors' : true
});
</script>
```

Usage
-----
Logging text:
@@ -45,3 +44,7 @@ separate logging instace:
var myBetterLogger = new LogglyTracker();
myBetterLogger.push({'logglyKey': '8c518f97-e3e0-4bfb-a8ed-582d084a5289' }); // push a loggly key to initialize
```

Send Console Errors to Loggly
----
Keeping <strong>sendConsolErrors</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.
@@ -89,8 +89,8 @@
return;
}

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

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