feat: logctx add default uuid
This commit is contained in:
@ -11,5 +11,8 @@ func TestCtxLog(t *testing.T) {
|
||||
InfoCtx(nil, "hello %s", "world")
|
||||
WarnCtx(context.Background(), "hello %s", "world")
|
||||
ctx := context.Background()
|
||||
context.WithValue(ctx, opt.TraceKey, "value")
|
||||
ctx = context.WithValue(ctx, opt.TraceKey, "value")
|
||||
SetLogLevel(LogLevelDebug)
|
||||
DebugCtx(ctx, "hello %s", "world")
|
||||
ErrorCtx(ctx, "hello %s", "world")
|
||||
}
|
||||
|
Reference in New Issue
Block a user