Allow a logger to be assigned to the middleware to log when a bot is recognized