Use the correct logger when logging.