Documentation ¶
Overview ¶
Package logger provides request logging via middleware. See _examples/beginner/request-logger
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // Status displays status code (bool) Status bool // IP displays request's remote address (bool) IP bool // Method displays the http method (bool) Method bool // Path displays the request path (bool) Path bool }
Config are the options of the logger middlweare contains 4 bools Status, IP, Method, Path if set to true then these will print
func DefaultConfiguration ¶
func DefaultConfiguration() Config
DefaultConfiguration returns an options which all properties are true except EnableColors
Click to show internal directories.
Click to hide internal directories.