MCPcopy Create free account
hub / github.com/blues/note / InitLogging

Function InitLogging

lib/debug.go:173–187  ·  view source on GitHub ↗
(
	debugFunc LogFunc,
	infoFunc LogFunc,
	warnFunc LogFunc,
	errorFunc LogFunc,
	timerBeginFn LogTimerBeginFunc,
	timerEndFn LogTimerEndFunc)

Source from the content-addressed store, hash-verified

171type LogTimerEndFunc func(ctx context.Context, key string)
172
173func InitLogging(
174 debugFunc LogFunc,
175 infoFunc LogFunc,
176 warnFunc LogFunc,
177 errorFunc LogFunc,
178 timerBeginFn LogTimerBeginFunc,
179 timerEndFn LogTimerEndFunc) {
180 debugEnvInit()
181 debugLoggerFunc = debugFunc
182 infoLoggerFunc = infoFunc
183 warnLoggerFunc = warnFunc
184 errorLoggerFunc = errorFunc
185 timerBeginFunc = timerBeginFn
186 timerEndFunc = timerEndFn
187}
188
189// Default logger for notelib
190var (

Callers 1

Calls 1

debugEnvInitFunction · 0.85

Tested by 1