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 = '/log';tattletale;tattletale;tattletale;
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
# Form Data console_logs:“My name is Ozymandias, king of kings: console_logs:Look on my works, ye Mighty, and despair!”
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 = '/log'token: windowxsrft;