Skip to content

Instantly share code, notes, and snippets.

@acidsound
Last active August 29, 2015 13:56
Show Gist options
  • Save acidsound/9324267 to your computer and use it in GitHub Desktop.
Save acidsound/9324267 to your computer and use it in GitHub Desktop.
meteor client/server side logging
Meteor.log = function() {
Meteor.call('log', arguments);
};
Meteor.methods({
"log": function(arg) {
console.log.apply(console, arg);
}
});
@acidsound
Copy link
Author

coffeescript version

Meteor.log = -> Meteor.call 'log', arguments
Meteor.method 'log' : (arg) -> console.log.apply console, arg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment