You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/middleware/logger.md
+2-8Lines changed: 2 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,6 @@ Echo has 2 different logger middlewares:
11
11
- Older string template based logger [`Logger`](https://github.com/labstack/echo/blob/master/middleware/logger.go) - easy to start with but has limited capabilities
12
12
- Newer customizable function based logger [`RequestLogger`](https://github.com/labstack/echo/blob/master/middleware/request_logger.go) - allows developer fully to customize what is logged and how it is logged. Suitable for usage with 3rd party logger libraries.
RequestLogger middleware allows developer fully to customize what is logged and how it is logged and is more suitable
119
112
for usage with 3rd party (structured logging) libraries.
113
+
114
+
You can quickly acquaint yourself with the values that the logger knows to extract by referring to the fields of the [`RequestLoggerConfig`](https://github.com/labstack/echo/blob/master/middleware/request_logger.go) structure below. Or click the link to view the most up-to-date details.
120
115
```go
121
116
typeRequestLoggerConfigstruct {
122
117
// Skipper defines a function to skip middleware.
@@ -181,7 +176,6 @@ type RequestLoggerConfig struct {
181
176
// contain more than one form value with same name so slice of values is been logger for each given form value name.
0 commit comments