jsErrLog
jsErrLog copied to clipboard
(docs) 2048 char limit applies to GET, not POST
this is more of a nitpick than an actual issue, the limit of 2048 chars applies to GET, not to POST and the url that is requested by jserrlog is a GET
And it is a little bit weard to write request queue to head tag. Though it's inconvenient to write ajax in raw js.
@alexlehm in a latest commit, a sendError method is added. Overwrite this method to add post support to your own server. An error object is also added, use error.stack you can record the whole stack trace.
// Send error to server side, default approach is jsErrLog.appendScript.
jsErrLog.sendError = function(i, sn, file_loc, line_no, col_no, ui, info, msg, error) { try { jsErrLog.sendErrorInternal(i, sn, file_loc, line_no, col_no, ui, info, msg, error) } catch (e) { jsErrLog.errorHandler("sendErrorInternal", e); } }