Skip to content

Instantly share code, notes, and snippets.

@ericmann
Created March 20, 2013 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericmann/5207959 to your computer and use it in GitHub Desktop.
Save ericmann/5207959 to your computer and use it in GitHub Desktop.
( function( window, undefined ) {
var Logger = function() {
var SELF = this,
log = [];
SELF.append = function( data ) {
log.push( data );
};
SELF.getData = function() {
return log;
};
SELF.reset = function() {
log = [];
};
};
window.logger = new Logger();
} )( this );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment