For example, while debugging, it's nice to get a return of my many log.debug's. However, in production, I'd like to lower it to log.error's only. I know there's a few ways to do it (maybe by checking a const), but what is the simplest way to achieve this?
For example, is there a log level const I can switch somewhere so I don't have to remember to toggle, or do I need to make my own?
Otherwise that's a biiig json sending back if it includes my debug logs.