This repository contains all code to handle logs in ExpressJS Application using winston logger
When you dev a web service logging what happen in http request is very important specially to debug your service. In this repo i use a wrapper of winston logger to log the requests. You can use the logger attaching it directly to expressjs application or everywhere in your code. It's your choice. Take a look at code and i hope to be helpful.
To install and test the code please follow the following steps:
- Clone or fork the repository
- Go to the local repository folder and digit
npm install
- Once all requested modules have been installed digit
npm start
The express application start at: http://localhost:5000/
I created this repository for all of you have trouble in handle logs in ExpressJS Application. Feel free to send me feedback and issue to improve the example.