mirror of
https://gitee.com/johng/gf.git
synced 2024-12-05 05:37:55 +08:00
16 lines
194 B
Go
16 lines
194 B
Go
package main
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/gogf/gf/os/glog"
|
|
)
|
|
|
|
func main() {
|
|
glog.SetAsync(true)
|
|
for i := 0; i < 10; i++ {
|
|
glog.Async().Print("async log", i)
|
|
}
|
|
time.Sleep(time.Second)
|
|
}
|