package
8.2.0
Repository: https://github.com/sassoftware/relic.git
Documentation: pkg.go.dev

# Functions

AppendAccessLog adds a callback function which will be invoked to amend the access log with additional fields.
AppendAccessLog adds a callback function which will be invoked to amend the access log with additional fields.
DontLog marks that the current request should not generate an access log entry.
LoggingMiddleware creates a logging context for each request, and emits an access log entry at the completion of the request.
RecoveryMiddleware catches panics, logs the error, and writes a generic Internal Server Error response.
SetupLogging initializes zerolog with reasonable defaults.
StripPort returns just the IP part from e.g.
WithLogger sets the base logger for the middleware.
WriteUnhandledError writes a generic 500 Internal Server Error response while logging the actual unhandled error and optional traceback.

# Structs

Logger wraps a ResponseWriter and records the resulting status code and how many bytes are written.

# Type aliases

No description provided by the author
No description provided by the author