ManpreetSL / habit-tracker

Group habit tracker
habit-tracker-omega.vercel.app
MIT License
0 stars 0 forks source link

feat: add loglevel and replace console usages with the logger #65

Closed ManpreetSL closed 1 year ago

ManpreetSL commented 1 year ago

We currently use console.log() and console.error() for logging, but this isn't the most effective for customisability. We want to use a logging library that can allow us to easily see useful debugging logs when we're developing, and disable those for production-level builds.

This PR implements the loglevel library and abstracts this library into a service so that if in the future, we want to change the library, it will only have to be changed in the service files instead of throughout the entire codebase.

Implements #64.

github-actions[bot] commented 1 year ago

Preview :) https://habit-tracker-3fvlz95v4-manpreetsl.vercel.app

github-actions[bot] commented 1 year ago

Preview :) https://habit-tracker-4lnn8d8zp-manpreetsl.vercel.app

github-actions[bot] commented 1 year ago

Preview :) https://habit-tracker-9ruao4r0n-manpreetsl.vercel.app