This project is meant to be a guideline for the Winston usage following the proposed best practices.
This project uses Node.js
and Express
so make sure, we have node
and npm
it installed.
node --version
npm --version
Using deven is an option too. Nodeenv installation, or:
brew install nodeenv
npm install
npm run dev
Your server will run on http://localhost:8000/
by defualt.
- Easy tutorial to setup
Express
withTypescript
in case you're interested: dev.to tutorial - Create a Node.js virtual environment: Nodeenv tutorial
- Winston official readme: Winston github
- Winston official examples: Winston examples
- Winston Loggin in Node.js: Winston on Node.js guide
- Winston with typescript blog post: Winston with Typescript
- Winston tutorial with a sample Nodejs application: Winston Node.js tutorial
- Winston Stack Overflow good questions:
- Winston Logger Names
- Winston 3.0 colorize whole output on console
- can I change the color of log data in winston?
- How to colorize parts of log message in winstonJs
- how to use winston to setup log in a sub directory instead of root directory?
- Winston doesn't pretty-print to console
- Remove all loggers from winston container