Skip to content

Instantly share code, notes, and snippets.

@pwmckenna
Created November 10, 2012 19:47
Show Gist options
  • Save pwmckenna/4052256 to your computer and use it in GitHub Desktop.
Save pwmckenna/4052256 to your computer and use it in GitHub Desktop.
soshare_logging_snippet.js
logger = function(ev) {
if(ev === 'client:connected') {
app.get('btapp').off('all', logger);
}
console.log(JSON.stringify(_.toArray(arguments), null, 4));
};
app.get('btapp').on('all', logger);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment