MCPcopy
hub / github.com/cortexlabs/cortex / GetLogger

Function GetLogger

pkg/lib/logging/logging.go:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55}
56
57func GetLogger() *zap.SugaredLogger {
58 loggerLock.Lock()
59 defer loggerLock.Unlock()
60
61 if logger == nil {
62 initializeLogger()
63 }
64 return logger
65}
66
67func DefaultZapConfig(level userconfig.LogLevel, fields ...map[string]interface{}) zap.Config {
68 encoderConfig := zap.NewProductionEncoderConfig()

Callers 12

resources.goFile · 0.92
cron.goFile · 0.92
exit.goFile · 0.92
routines.goFile · 0.92
respond.goFile · 0.92
cron.goFile · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
main.goFile · 0.92
mainFunction · 0.92
mainFunction · 0.92

Calls 1

initializeLoggerFunction · 0.70

Tested by

no test coverage detected