Since I\'d like not to do code repetition here, I\'m trying to figure out a way to move the common part for each of these logger functions (e.g. debug, warning, info, etc.)