package
0.28.2
Repository: https://github.com/smallstep/certificates.git
Documentation: pkg.go.dev

# Functions

New initializes the logger with the given options.
NewLoggerHandler returns the given http.Handler with the logger integrated.
NewResponseLogger wraps the given response writer with methods to capture the status code, the number of bytes written, and methods to add new log entries.

# Variables

ErrorKey defines the key used to log errors.

# Structs

CommonLogFormat implements the logrus.Formatter interface it writes logrus entries using a CLF format prepended by the request-id.
Logger is an alias of logrus.Logger.
LoggerHandler creates a logger handler.

# Interfaces

ResponseLogger defines an interface that a responseWrite can implement to support the capture of the status code, the number of bytes written and extra log entry fields.