we can avoid doing conditional logging like this by including the aloha console as a dependency. they have all the logic for handling logging in different environments encapsulated there