We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I wrap logrus, I can't get the right call method.
Like the following code a.go
... func Test(){ b.Info(ctx,logMsg) } ...
b.go
... type BusinessLog struct { *logrus.Logger } var std = NewBusinessLog() func NewBusinessLog() *BusinessLog { ln := logrus.New() ln.SetReportCaller(true) ... return &BusinessLog{Logger: ln} } func Info(ctx context.Context, v interface{}){ traceId:=trace.GetId(ctx) std.Logger.WithField("traceId", traceId).Info(v) } ...
expectation Method name Test in the file a.go
Test
practical Method name Info int the file b.go
Info
question How do I get the method name Test in file a.go?
Thank you
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open for 30 days with no activity.
Sorry, something went wrong.
This issue was closed because it has been inactive for 14 days since being marked as stale.
No branches or pull requests
When I wrap logrus, I can't get the right call method.
Like the following code
a.go
b.go
expectation
Method name
Test
in the file a.gopractical
Method name
Info
int the file b.goquestion
How do I get the method name
Test
in file a.go?Thank you
The text was updated successfully, but these errors were encountered: