Deprecated: Please upgrade to the latest major version: go get github.com/go-chi/chi/v5

logging command

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/pressly/lg for an improved context logger with support for HTTP request logging, based on the example below.

Version
v2.1.0+incompatible
Published
Mar 30, 2017
Platform
linux/amd64
Imports
6 packages
Last checked
13 hours ago

Tools for package owners.