MCPcopy
hub / github.com/sirupsen/logrus / SetReportCaller

Function SetReportCaller

exported.go:30–32  ·  view source on GitHub ↗

SetReportCaller sets whether the standard logger will include the calling method as a field.

(include bool)

Source from the content-addressed store, hash-verified

28// SetReportCaller sets whether the standard logger will include the calling
29// method as a field.
30func SetReportCaller(include bool) {
31 std.SetReportCaller(include)
32}
33
34// SetLevel sets the standard logger level.
35func SetLevel(level Level) {

Callers 2

TestFieldClashWithCallerFunction · 0.85

Calls 1

SetReportCallerMethod · 0.80

Tested by 2

TestFieldClashWithCallerFunction · 0.68