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.
We currently use
console.log()
andconsole.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.