添加example&优化参数截取
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/yuninks/loggerx"
|
||||
)
|
||||
@@ -11,6 +12,8 @@ func main() {
|
||||
log := loggerx.NewLogger(ctx,
|
||||
// loggerx.SetPrintFile(false),
|
||||
loggerx.SetToConsole(),
|
||||
// loggerx.SetTimeZone(time.UTC),
|
||||
loggerx.SetTimeZone(time.FixedZone("CST", 8*3600)),
|
||||
)
|
||||
log.Info(ctx, "哈哈哈2")
|
||||
log.Info(ctx, "哈哈哈2")
|
||||
|
||||
Reference in New Issue
Block a user