mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
9f85b74fc9
Former-commit-id: da4f38eb9034daa49446df3ee529423b98f9b331
22 lines
568 B
Go
22 lines
568 B
Go
package logger
|
|
|
|
// Config are the options of the logger middlweare
|
|
// contains 4 bools
|
|
// Status, IP, Method, Path
|
|
// if set to true then these will print
|
|
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
|
|
}
|
|
|
|
// DefaultConfiguration returns an options which all properties are true except EnableColors
|
|
func DefaultConfiguration() Config {
|
|
return Config{true, true, true, true}
|
|
}
|