master: updated the rtail function to handle multiple logs with default