MCPcopy
hub / github.com/koderover/zadig / getLogger

Function getLogger

pkg/tool/log/log.go:148–154  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146}
147
148func getLogger() *zap.Logger {
149 if logger == nil {
150 panic("Logger is not initialized yet!")
151 }
152
153 return logger
154}
155
156func getSugaredLogger() *zap.SugaredLogger {
157 return getLogger().Sugar()

Callers 3

LoggerFunction · 0.70
getSugaredLoggerFunction · 0.70
WithFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected