Created
December 6, 2011 15:49
-
-
Save Incognito/1438654 to your computer and use it in GitHub Desktop.
Psudo-error loggging JS thinger.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE errorLog ( | |
Timestamp, | |
IP, | |
Line, | |
ErrorMessage, | |
URL, | |
Cookies, | |
UserAgent, | |
Plugins, | |
State --If we can capture the functioncall or stack or some sort of "thrown" issue. | |
); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.onerror = function(error, url, line){ | |
someAjaxyThing({ | |
CollectBrowserDataAsObject(), | |
error, | |
url, | |
line | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment