Skip to content
A utility to send console logs over XHR for server-side processing.
Branch: master
Clone or download
restlessdesign Merge pull request #1 from dgobaud/master
Fix double logging bug and serious logging error calling convertObjectToQueryString multiple times
Latest commit 6b68d0a Aug 10, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
test Initial commit Jun 7, 2013
.gitignore Initial commit Jun 7, 2013
.jshintrc Update .jshintrc Jun 12, 2013
Gruntfile.js Initial commit Jun 7, 2013
LICENSE Initial commit Jun 7, 2013
NOTICE Initial commit Jun 7, 2013 Rename library to Tattletale.JS Apr 8, 2014
package.json Initial commit Jun 7, 2013
tattletale.js fix duplicate logging bug, fix bug assigning result of convertObjectT… Sep 25, 2014
tattletale.min.js Initial commit Jun 7, 2013


Tattletale wraps around the browser’s console object, storing your logs in order to send them over XHR for long-term storage and analysis using a service like Scribe.


var tattletale = new Tattletale('/log');

tattletale.log('“My name is Ozymandias, king of kings:');
tattletale.log('Look on my works, ye Mighty, and despair!”');


When the send() method is called, an array of all log calls made since the last send() call will be submitted to the server as an array of request parameters name console_logs:

# Form Data
console_logs[0]:“My name is Ozymandias, king of kings:
console_logs[1]:Look on my works, ye Mighty, and despair!”

The empty() method will be automatically triggered to prevent duplicate entries from appearing in your logs.


In addition to a server-side endpoint, the constructor also accepts an object of static parameters to be sent along with your request. For example, if your POST requests need to include a token to prevent against XSRF:

var tattletale = new Tattletale('/log', {
    token: window.xsrft
You can’t perform that action at this time.