modulepackage
0.0.0-20210729230351-fc50acd79868
Repository: https://github.com/vkuznet/http-logging.git
Documentation: pkg.go.dev
# README
http-logging
Logging utilities for HTTP services
# Functions
LoggingMiddleware provides logging middleware for HTTP requests https://arunvelsriram.dev/simple-golang-http-logging-middleware.
helper function to log every single user request, here we pass pointer to status code as it may change through the handler while we use defer logRequest.
MonitRecord prepares log record for MONIT.
# Variables
CMSHTTPRecord.
PrintMonitRecord yields MONIT records.
UTC flag represents UTC time zone for log messages.
# Structs
HTTPRecord provides http record we send to logs endpoint.
LogRecord represents HTTP log record.
custom logger.
custom rotate logger.