printing formatted ip in log