change the doc of log with new API