update log function