nickheyer / DiscoFlix

A simple media-requesting, Radarr/Sonarr-interfacing, movie and tv show-listing Chat Bot web-app for your media server.
48 stars 3 forks source link

Clean up logging #24

Closed nickheyer closed 8 months ago

nickheyer commented 8 months ago
  1. Clean up debug logging.
  2. Make logging more consistent and intentional.
  3. Make logging class/method easily accessible and importable throughout entire code base.
  4. Keep logging functionality external to the code that it is logging. Ie: detach logger from CoreService class and move to project root.
  5. Bind logging to Prisma/Sqlite db using Prisma methods and the errLog / eventLog models. Set logging type/level in db record for later filtering and client UI.
nickheyer commented 8 months ago

Completed logging as much as currently able. Will need to later implement DB write logging and be selective about it. File logging is all we have currently.