Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Example usage of morgan and winston for logging in node

Notifications You must be signed in to change notification settings

deepakchandola717/morgan-winston-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morgan and Winston Example

Example displaying morgan and winston logger. Creates log files in two formats:

  • one displaying recent logs.
  • other maintaining date wise logs.

Installation

Requires Node.js v4+ to run.

Install the dependencies and start the server.

$ cd morgan-winston-example
$ npm install 
$ node index.js

Dependencies

Following are the dependencies:

  • Morgan - HTTP request logger middleware for node.js
  • Winston - A logger for just about everything.
  • Express - Fast, unopinionated, minimalist web framework for node.
  • winston-daily-rotate-file - A transport for winston which logs to a rotating file.

About

Example usage of morgan and winston for logging in node

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published