# Functions

GetLogEntry returns the in-context LogEntry for a request.
Logger is a middleware that logs the start and end of each request, along with some useful data about what was requested, what the response status was, and how long it took to return.
NewBugsnagPanicReceiver creates a new bugsnag panic receiver.
RealIP is a middleware that sets a http.Request's RemoteAddr to the results of parsing either the X-Forwarded-For header or the X-Real-IP header (in that order).
Recoverer is a middleware that recovers from panics, logs the panic (and a backtrace), and returns a HTTP 500 (Internal Server Error) status if possible.
RequestLogger returns a logger handler using a custom LogFormatter.
WithLogEntry sets the in-context LogEntry for a request.

# Variables

DefaultLogger is called by the Logger middleware handler to log each request.
LogEntryCtxKey is the context.Context key to store the request log entry.

# Structs

BugsnagPanicReceiver receives panic information and notifies bugsnag.
DefaultLogFormatter is a simple logger that implements a LogFormatter.

# Interfaces

LogEntry records the final log when a request completes.
LogFormatter initiates the beginning of a new LogEntry per request.
LoggerInterface accepts printing to stdlib logger or compatible logger.
PanicReceiver is able to receive panic information from the Recoverer middleware.

# Type aliases

PanicReceiverFunction function type that implements PanicReceiver interface.