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

Function SetTimeFunction

pkg.go:111–113  ·  view source on GitHub ↗

SetTimeFunction sets the time function for the default logger.

(f TimeFunction)

Source from the content-addressed store, hash-verified

109
110// SetTimeFunction sets the time function for the default logger.
111func SetTimeFunction(f TimeFunction) {
112 Default().SetTimeFunction(f)
113}
114
115// SetOutput sets the output for the default logger.
116func SetOutput(w io.Writer) {

Callers 7

TestGlobalFunction · 0.85
TestPrintFunction · 0.85
TestPrintfFunction · 0.85
TestDebugfFunction · 0.85
TestWarnfFunction · 0.85
TestErrorfFunction · 0.85
TestWithFunction · 0.85

Calls 2

DefaultFunction · 0.85
SetTimeFunctionMethod · 0.80

Tested by 7

TestGlobalFunction · 0.68
TestPrintFunction · 0.68
TestPrintfFunction · 0.68
TestDebugfFunction · 0.68
TestWarnfFunction · 0.68
TestErrorfFunction · 0.68
TestWithFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…