What is Log

Log is mechine generated human readable sequencial recorded file which help you to understands how system works by time sequence. A log is kind of table or file where the records are sorted by time.

Purpose of log

log records when and what it occard that easyly tracking process can be improved when you need

winston

Basic winston configure

format,level,and transport these three core concept need to know

Transport : in developement environment always use console transport but in production commonly use file transport where every log message save in file. in other transport options

Advance configure winston

Live Demo

Routes

Loading...