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

Function getSimpleLogger

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

Source from the content-addressed store, hash-verified

158}
159
160func getSimpleLogger() *zap.SugaredLogger {
161 if simpleLogger == nil {
162 panic("Logger is not initialized yet!")
163 }
164
165 return simpleLogger
166}
167
168func NewFileLogger(path string) *zap.Logger {
169 fileSyncer := getLogWriter(path, 0, 0, 0)

Callers 15

DebugFunction · 0.85
DebugfFunction · 0.85
InfoFunction · 0.85
InfofFunction · 0.85
WarningFunction · 0.85
WarningfFunction · 0.85
WarnFunction · 0.85
WarnfFunction · 0.85
ErrorFunction · 0.85
ErrorfFunction · 0.85
DPanicFunction · 0.85
DPanicfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected