Skip to content

Latest commit

 

History

History

express-winston-logger

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simple example to use winston logger in ExpressJS App

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.

Installation

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.

References

Logging Control In W3C httpd

Nicola Del Gobbo

https://github.com/NickNaso/

https://www.npmjs.com/~nicknaso

https://twitter.com/NickNaso