expressjs / morgan

HTTP request logger middleware for node.js
MIT License
7.92k stars 533 forks source link

Add 'save to mongodb' feature or add more details about it in the README.md #246

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi, I wanna save my logs to the database (MongoDB) but I don't wanna use morgan-mongodb or other packages. is there any way for me to do that by myself? something like this: save logs into a collection as a document before logging.

dougwilson commented 3 years ago

Thanks for your request! Unfortunately I am not familiar with mongodb in that way, so would not be able to add any such information. You're welcome to contribute it as a pull request, though!