Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

on AppFog, how to see the console logs on the terminal (node.js)

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?

like image 277
Asaf Katz Avatar asked Dec 06 '22 10:12

Asaf Katz


1 Answers

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

af logs <your_app_name>
like image 188
Vadim Baryshev Avatar answered Feb 24 '23 00:02

Vadim Baryshev