Seeing console.log() server side output?


#1

How can I make console.log() output show up in the terminal where I run the server?


#2

On the server it just works.

From the client you have to call a server method:

// Server
Meteor.methods({
  logToConsole: function(msg) {
    console.log(msg)
  }
})

// Client
Meteor.call("logToConsole", "Hello World")

#3

You’re right. I was confused by several other things. Thanks!


#4

How can I do this but for the “real server” (my VPS, my staging server)? I am deploying with mupx if that matters.


#5

I would like to know that also.