4

I would like to be able to see the console logs in my terminal from my node.js App on AppFog. it it very hard to debug without it.

I saw something called tunnelling in the documentaion, is this what I'm looking for?
if so, could you explain me how to do it?

The screenshot below is from my local machine: how can I see a similar output from my AppFog instance?

console logs on the terminal

Edit: @Vadim mention in his answer the command

af logs <your_app_name>

and it seems to work as expected, but it stops logging after few seconds,
how to tell it to keep watching?

Marius Butuc
  • 17,781
  • 22
  • 77
  • 111
Asaf Katz
  • 4,608
  • 4
  • 37
  • 42

1 Answers1

15

You can see console.log output via af tool. Type in console:

af logs <your_app_name>
Vadim Baryshev
  • 25,689
  • 4
  • 56
  • 48
  • it seems that it stop watching to logs after a few second, is there a way to keep it logging? – Asaf Katz Jan 12 '13 at 15:02
  • 1
    Unfortunately there is no way to keep logging for now. `af logs ` just read last logs (or all logs with `--all` option) and exit. Like read from file. – Vadim Baryshev Jan 12 '13 at 16:21