Use IO object directly instead of wrapping it in a logger.