update log print output at the beginning