Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogRequests ¶
func LogRequests(logger Logger) types.Middleware
Types ¶
type Logger ¶
Logger records log lines to an output.
func DefaultLoggers ¶
func DefaultLoggers() (debug, info, warn, error Logger)
DefaultLoggers produces helpful base loggers for each level.
They write logfmt to standard out, annotated with ANSI colors depending on the level.
Click to show internal directories.
Click to hide internal directories.