MCPcopy
hub / github.com/charmbracelet/log / SetReportCaller

Function SetReportCaller

pkg.go:91–93  ·  view source on GitHub ↗

SetReportCaller sets whether to report caller location for the default logger.

(report bool)

Source from the content-addressed store, hash-verified

89
90// SetReportCaller sets whether to report caller location for the default logger.
91func SetReportCaller(report bool) {
92 Default().SetReportCaller(report)
93}
94
95// SetLevel sets the level for the default logger.
96func SetLevel(level Level) {

Callers 12

TestPrintFunction · 0.85
TestPrintfFunction · 0.85
TestFatalFunction · 0.85
TestFatalfFunction · 0.85
TestDebugfFunction · 0.85
TestInfofFunction · 0.85
TestWarnfFunction · 0.85
TestErrorfFunction · 0.85
TestWithFunction · 0.85
TestPrefixFunction · 0.85
TestFormatterFunction · 0.85
TestGlobalCustomLevelFunction · 0.85

Calls 2

DefaultFunction · 0.85
SetReportCallerMethod · 0.80

Tested by 12

TestPrintFunction · 0.68
TestPrintfFunction · 0.68
TestFatalFunction · 0.68
TestFatalfFunction · 0.68
TestDebugfFunction · 0.68
TestInfofFunction · 0.68
TestWarnfFunction · 0.68
TestErrorfFunction · 0.68
TestWithFunction · 0.68
TestPrefixFunction · 0.68
TestFormatterFunction · 0.68
TestGlobalCustomLevelFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…