Vetrox / squirrelbot

Ein discord Bot für die Fachschaft des FB 12
MIT License
2 stars 1 forks source link

refactor logging #83

Open roscha444 opened 3 years ago

roscha444 commented 3 years ago

add log level to logger

DEBUG->only for debug purposes (maybe there is a flag in .env to enable or disable debug mode) INFO -> is standard info to log WARN-> something strange ERROR-> error, but is catched FATAL -> critical error (e.g. database error.... )

roscha444 commented 3 years ago

maybe it makes more sense to switch to a logging dependency

https://github.com/winstonjs/winston