Skip to content

Commit

Permalink
chore: bump to v2 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrwiersma authored May 14, 2021
1 parent 40611a8 commit 349a3d8
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ logger is a fast Go logging package made to be simple but effective.
Install with:

```shell
go get github.com/hamba/logger
go get github.com/hamba/logger/v2
```

#### Formatters
Expand Down
4 changes: 2 additions & 2 deletions bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"os"
"testing"

"github.com/hamba/logger"
"github.com/hamba/logger/ctx"
"github.com/hamba/logger/v2"
"github.com/hamba/logger/v2/ctx"
)

func BenchmarkLogger_Logfmt(b *testing.B) {
Expand Down
2 changes: 1 addition & 1 deletion ctx/ctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package ctx
import (
"time"

"github.com/hamba/logger"
"github.com/hamba/logger/v2"
)

// Str returns a string context field.
Expand Down
2 changes: 1 addition & 1 deletion event.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sync"
"time"

"github.com/hamba/logger/internal/bytes"
"github.com/hamba/logger/v2/internal/bytes"
)

var eventPool = &sync.Pool{
Expand Down
4 changes: 2 additions & 2 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package logger_test
import (
"os"

"github.com/hamba/logger"
"github.com/hamba/logger/ctx"
"github.com/hamba/logger/v2"
"github.com/hamba/logger/v2/ctx"
)

func ExampleNew() {
Expand Down
2 changes: 1 addition & 1 deletion format.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"time"

"github.com/hamba/logger/internal/bytes"
"github.com/hamba/logger/v2/internal/bytes"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"
"time"

"github.com/hamba/logger"
"github.com/hamba/logger/internal/bytes"
"github.com/hamba/logger/v2"
"github.com/hamba/logger/v2/internal/bytes"
"github.com/stretchr/testify/assert"
)

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/hamba/logger
module github.com/hamba/logger/v2

go 1.16

Expand Down
4 changes: 2 additions & 2 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"testing"
"time"

"github.com/hamba/logger"
"github.com/hamba/logger/ctx"
"github.com/hamba/logger/v2"
"github.com/hamba/logger/v2/ctx"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion writer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/hamba/logger"
"github.com/hamba/logger/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down

0 comments on commit 349a3d8

Please sign in to comment.