MCPcopy
hub / github.com/crowdsecurity/crowdsec / NewLogger

Method NewLogger

pkg/cache/cache.go:39–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37}
38
39func (cfg CacheCfg) NewLogger() *log.Entry {
40 clog := logging.SubLogger(log.StandardLogger(), "cache", cfg.LogLevel)
41 return clog.WithField("cache", cfg.Name)
42}
43
44func CacheInit(cfg CacheCfg, logger log.FieldLogger) error {
45 if logger == nil {

Callers 7

CompileMethod · 0.95
NewServerFunction · 0.45
WindowsRunFunction · 0.45
ServeFunction · 0.45
StartRunSvcFunction · 0.45
newReinjectCmdMethod · 0.45
DBClientFunction · 0.45

Calls 2

SubLoggerFunction · 0.92
StandardLoggerMethod · 0.80

Tested by

no test coverage detected