Golang have standard log package. Is there a way to put mircoseconds to its output?
Standard code puts pretty useless timestamp with second precision:
log.Println("Starting app on", APP_PORT)
2015/07/29 19:28:32 Starting app on :9090
Golang have standard log package. Is there a way to put mircoseconds to its output?
Standard code puts pretty useless timestamp with second precision:
log.Println("Starting app on", APP_PORT)
2015/07/29 19:28:32 Starting app on :9090
Golang具有标准的日志包。 是否有一种方法可以将微秒添加到其输出? p>
标准代码使用第二精度精确地放置了无用的时间戳: p>
log.Println(“ Starting app on”,APP_PORT)
2015 / 07/29 19 :28:32在:9090
code> pre>
div>上启动应用