writing logs with server ip