mirror of
https://gitee.com/johng/gf
synced 2026-07-03 03:39:35 +08:00
15 lines
195 B
Go
15 lines
195 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/g/os/glog"
|
|
"time"
|
|
)
|
|
|
|
func main() {
|
|
glog.SetAsync(true)
|
|
for i := 0; i < 10; i++ {
|
|
glog.Async().Print("async log", i)
|
|
}
|
|
time.Sleep(time.Second)
|
|
}
|