(cfg *config.Config)
| 13 | var timefmt = "2006-01-02T15:04:05Z07:00" |
| 14 | |
| 15 | func 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 | |
| 23 | func Debug(msg string, fields map[string]interface{}) { if should("debug") { out("debug", msg, fields) } } |
| 24 | func Info(msg string, fields map[string]interface{}) { if should("info") { out("info", msg, fields) } } |
no test coverage detected