Skip to content

Commit 10d7880

Browse files
committed
Update logger.md
1 parent 2fb0ec6 commit 10d7880

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

website/docs/middleware/logger.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ Echo has 2 different logger middlewares:
1111
- Older string template based logger [`Logger`](https://github.com/labstack/echo/blob/master/middleware/logger.go) - easy to start with but has limited capabilities
1212
- 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.
1313

14-
## Dependencies
15-
```go
16-
import "github.com/labstack/gommon/log"
17-
import "github.com/mattn/go-isatty"
18-
import "github.com/valyala/fasttemplate"
19-
import "github.com/labstack/gommon/color"
20-
```
2114
## Old Logger middleware
2215

2316
## Usage
@@ -117,6 +110,8 @@ DefaultLoggerConfig = LoggerConfig{
117110

118111
RequestLogger middleware allows developer fully to customize what is logged and how it is logged and is more suitable
119112
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.
120115
```go
121116
type RequestLoggerConfig struct {
122117
// Skipper defines a function to skip middleware.
@@ -181,7 +176,6 @@ type RequestLoggerConfig struct {
181176
// contain more than one form value with same name so slice of values is been logger for each given form value name.
182177
LogFormValues []string
183178

184-
timeNow func() time.Time
185179
}
186180
```
187181

0 commit comments

Comments
 (0)