MCPcopy Create free account
hub / github.com/Mister-leo/fssh / Init

Function Init

internal/log/log.go:15–21  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

13var timefmt = "2006-01-02T15:04:05Z07:00"
14
15func Init(cfg *config.Config) {
16 if cfg == nil { return }
17 level = cfg.LogLevel
18 format = cfg.LogFormat
19 timefmt = cfg.LogTimeFormat
20 config.SetupLogging(cfg)
21}
22
23func Debug(msg string, fields map[string]interface{}) { if should("debug") { out("debug", msg, fields) } }
24func Info(msg string, fields map[string]interface{}) { if should("info") { out("info", msg, fields) } }

Callers 1

cmdAgentFunction · 0.92

Calls 1

SetupLoggingFunction · 0.92

Tested by

no test coverage detected