5

I am seeing all the requests being made, but I would like to add a timestamp to see when did each one happen. How can I achieve that?

2
  • You can use morgan github.com/expressjs/morgan Commented Jun 6, 2017 at 16:20
  • 1
    any way to achieve with nodemon? Commented Jun 6, 2017 at 16:25

1 Answer 1

6

Use a nodemon config file named nodemon.json to print timestamp:

{ "events": { "start": "date" } } 

And specify the config file when running nodemon nodemon --config nodemon.json server.js.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.