chi: github.com/go-chi/chi/_examples/logging Files

Command logging

Custom Structured Logger ======================== This example demonstrates how to use middleware.RequestLogger, middleware.LogFormatter and middleware.LogEntry to build a structured logger using the amazing sirupsen/logrus package as the logging backend.

Also: check out https://github.com/goware/httplog for an improved context logger with support for HTTP request logging, based on the example below.

Package Files

main.go

Package main imports 6 packages (graph). Updated 2020-04-04. Refresh now. Tools for package owners.