7

I am creating an ngrok server using the command: ngrok http 2567

In my application i'm doing various console.log calls and I'd like to be able to view them!

I have tried using ngrok help and using the --log flag, but with no luck.

How can I view my logs when hosting on ngrok?

James
  • 659
  • 1
  • 5
  • 25

3 Answers3

12

If you want to see the log from ngrok you should use localhost:4040, there is a list from all the requests you have done.

sɐunıɔןɐqɐp
  • 3,332
  • 15
  • 36
  • 40
4

Try running command: ./ngrok <http/https> <port_number> --log=stdout

Ex: ./ngrok http 8080 --log=stdout

Worked for me.

Tharindu Vindula
  • 1,192
  • 1
  • 8
  • 18
subbu ch
  • 61
  • 3
1

Use following command with > ngrok.log & to output ngrok logs into one file named ngrok.log (You can rename accordingly based on your need):

ngrok <http/https> <port_number> --log=stdout > ngrok.log &

After that, open ngrok.log to see logs details.

Jerry Chong
  • 7,954
  • 4
  • 45
  • 40