MCPcopy
hub / github.com/livekit/livekit / GetLogger

Function GetLogger

pkg/utils/context.go:43–48  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

41}
42
43func GetLogger(ctx context.Context) logger.Logger {
44 if l, ok := ctx.Value(loggerKey{}).(logger.Logger); ok {
45 return l
46 }
47 return logger.GetLogger()
48}

Callers 7

LoggerMethod · 0.92
handleErrorFunction · 0.92
loggerResponseSentFunction · 0.92
v0ValidateMethod · 0.92
v1ValidateMethod · 0.92
serveMethod · 0.92

Calls 1

GetLoggerMethod · 0.65

Tested by

no test coverage detected