add log to ip cache.