Replace log function is added.