Skip to content

Commit

Permalink
fix v2
Browse files Browse the repository at this point in the history
  • Loading branch information
samber committed Oct 21, 2023
1 parent 3065e64 commit ba086ca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ A [Logrus](https://github.com/sirupsen/logrus) Handler for [slog](https://pkg.go
## 🚀 Install

```sh
go get github.com/samber/slog-logrus
go get github.com/samber/slog-logrus/v2
```

**Compatibility**: go >= 1.21

No breaking changes will be made to exported APIs before v2.0.0.
No breaking changes will be made to exported APIs before v3.0.0.

## 💡 Usage

GoDoc: [https://pkg.go.dev/github.com/samber/slog-logrus](https://pkg.go.dev/github.com/samber/slog-logrus)
GoDoc: [https://pkg.go.dev/github.com/samber/slog-logrus/v2](https://pkg.go.dev/github.com/samber/slog-logrus/v2)

### Handler options

Expand Down Expand Up @@ -84,7 +84,7 @@ sloglogrus.ErrorKeys = []string{"error", "err"}

```go
import (
sloglogrus "github.com/samber/slog-logrus"
sloglogrus "github.com/samber/slog-logrus/v2"
"github.com/sirupsen/logrus"
"log/slog"
)
Expand Down
2 changes: 1 addition & 1 deletion example/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"log/slog"

sloglogrus "github.com/samber/slog-logrus"
sloglogrus "github.com/samber/slog-logrus/v2"
"github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/samber/slog-logrus
module github.com/samber/slog-logrus/v2

go 1.21

Expand Down

0 comments on commit ba086ca

Please sign in to comment.