Skip to content

Commit

Permalink
Replace sloggin with slogecho in example code of slog-echo (#15)
Browse files Browse the repository at this point in the history
`sloggin` is not imported in the example code at the top. 
It might be forgotten to be replaced
  • Loading branch information
kyasbal authored Nov 13, 2023
1 parent bdfa4d4 commit bbb3b8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ e.Logger.Fatal(e.Start(":4242"))
```go
logger := slog.New(slog.NewTextHandler(os.Stdout, nil))

config := sloggin.Config{
config := slogecho.Config{
WithSpanID: true,
WithTraceID: true,
}
Expand All @@ -116,7 +116,7 @@ e.Use(middleware.Recover())
```go
logger := slog.New(slog.NewTextHandler(os.Stdout, nil))

config := sloggin.Config{
config := slogecho.Config{
WithRequestBody: true,
WithResponseBody: true,
WithRequestHeader: true,
Expand Down

0 comments on commit bbb3b8d

Please sign in to comment.