Created
November 10, 2012 19:47
-
-
Save pwmckenna/4052256 to your computer and use it in GitHub Desktop.
soshare_logging_snippet.js
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
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