MCPcopy
hub / github.com/go-chi/chi / init

Function init

middleware/logger.go:172–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

170}
171
172func init() {
173 color := true
174 if runtime.GOOS == "windows" {
175 color = false
176 }
177 DefaultLogger = RequestLogger(&DefaultLogFormatter{Logger: log.New(os.Stdout, "", log.LstdFlags), NoColor: !color})
178}

Callers

nothing calls this directly

Calls 1

RequestLoggerFunction · 0.85

Tested by

no test coverage detected