konyv12
konyv12

Reputation: 776

How to add a timestamp to nodemon?

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?

Upvotes: 5

Views: 742

Answers (1)

Mohan Raj
Mohan Raj

Reputation: 61

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.

Upvotes: 6

Related Questions