Concept Flow - Logging with Winston or Pino
Start Application
Initialize Logger (Winston or Pino)
Application Runs
Log Event Occurs
Logger Formats Message
Logger Outputs to Console/File
Continue Application or Exit
The app starts, sets up the logger, then logs messages during runtime, formatting and outputting them as configured.