A) I use a combination of morgan for request logging, and Winston for error logs.
B) I structure my logs into information logs, warning logs, request logs, and error logs.
C) I store my logs in a logs folder on the production server. They are organized into 3 files based on the level of severity, and each log entry is prepended with a time stamp, and the userId if applicable.
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.