Skip to content

Commit

Permalink
Improve logger headers
Browse files Browse the repository at this point in the history
  • Loading branch information
aldas committed Nov 10, 2023
1 parent 6b94ff2 commit cbcbf39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/docs/middleware/logger.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Echo has 2 different logger middlewares:
- Older string template based logger [`Logger`](https://github.com/labstack/echo/blob/master/middleware/logger.go) - easy to start with but has limited capabilities
- 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.

## Old Logger middleware (string template)
## Old Logger middleware

## Usage

Expand Down Expand Up @@ -106,7 +106,7 @@ DefaultLoggerConfig = LoggerConfig{
}
```

## New RequestLogger middleware (customizable Function)
# New RequestLogger middleware

RequestLogger middleware allows developer fully to customize what is logged and how it is logged and is more suitable
for usage with 3rd party (structured logging) libraries.
Expand Down

0 comments on commit cbcbf39

Please sign in to comment.