RSCodingClub / STUCO-Backend

MIT License
3 stars 0 forks source link

Convert logging to winston. #51

Closed itotallyrock closed 7 years ago

itotallyrock commented 7 years ago

Winston is a very useful library that functions across systems, allows logging levels, and logging to a file. The current library log-util is nice but was only chosen for the pretty colors it offered. Which any serious program doesn't need and will let syslog handle the coloring and formatting and simple logging is all that is necessary.

itotallyrock commented 7 years ago

Winston is one of many possible choices for a new logging library, we first need to think of what we want out of the logging.

What we want

What we don't necessarily need are

Knowing this it somewhat narrows it down but it is still a difficult decision. I will be doing more investigating into different libraries.

itotallyrock commented 7 years ago

We will also start using the debug library which will allow for easy console output of finding errors.