save logs to file and add timestamp and client IP