initial import
This commit is contained in:
20
example/logging/redirector/main.go
Normal file
20
example/logging/redirector/main.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"zero/core/logx"
|
||||
)
|
||||
|
||||
func main() {
|
||||
logx.MustSetup(logx.LogConf{
|
||||
Mode: "console",
|
||||
})
|
||||
logx.CollectSysLog()
|
||||
|
||||
line := "asdkg"
|
||||
logx.Info(line)
|
||||
fmt.Print(line)
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
Reference in New Issue
Block a user