1
0
Fork 0
mirror of https://github.com/chainguard-dev/clog synced 2026-07-06 22:12:46 +00:00

update to chainguard-dev (#2)

This commit is contained in:
Carlos Tadeu Panato Junior 2023-12-21 17:54:22 +01:00 committed by GitHub
parent 9bf46567a6
commit 7a6e5ac694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,6 @@
# slogctx
[![Go Reference](https://pkg.go.dev/badge/github.com/wlynch/slogctx.svg)](https://pkg.go.dev/github.com/wlynch/slogctx)
[![Go Reference](https://pkg.go.dev/badge/github.com/chainguard-dev/slogctx.svg)](https://pkg.go.dev/github.com/chainguard-dev/slogctx)
Context aware slog
@ -65,7 +65,7 @@ $ go test -v ./examples/logger
--- PASS: TestLog/a (0.00s)
--- PASS: TestLog/b (0.00s)
PASS
ok github.com/wlynch/slogctx/examples/logger
ok github.com/chainguard-dev/slogctx/examples/logger
```
### Context Handler

View file

@ -5,8 +5,8 @@ import (
"log/slog"
"os"
"github.com/wlynch/slogctx"
"github.com/wlynch/slogctx/slogtest"
"github.com/chainguard-dev/slogctx"
"github.com/chainguard-dev/slogctx/slogtest"
)
func ExampleHandler() {

View file

@ -5,7 +5,7 @@ import (
"log/slog"
"os"
"github.com/wlynch/slogctx"
"github.com/chainguard-dev/slogctx"
)
func init() {

View file

@ -4,7 +4,7 @@ import (
"context"
"log/slog"
"github.com/wlynch/slogctx"
"github.com/chainguard-dev/slogctx"
)
func main() {

View file

@ -3,8 +3,8 @@ package main
import (
"testing"
"github.com/wlynch/slogctx"
"github.com/wlynch/slogctx/slogtest"
"github.com/chainguard-dev/slogctx"
"github.com/chainguard-dev/slogctx/slogtest"
)
func TestFoo(t *testing.T) {

2
go.mod
View file

@ -1,3 +1,3 @@
module github.com/wlynch/slogctx
module github.com/chainguard-dev/slogctx
go 1.21.2

View file

@ -108,7 +108,7 @@ func TestLoggerPC(t *testing.T) {
t.Fatal(err)
}
// Knowing that the PC is from this test is good enough.
want := fmt.Sprintf("github.com/wlynch/slogctx.%s", t.Name())
want := fmt.Sprintf("github.com/chainguard-dev/slogctx.%s", t.Name())
if got.Source.Function != want {
t.Errorf("want %v, got %v", want, got)
}

View file

@ -5,7 +5,7 @@ import (
"io"
"log/slog"
"github.com/wlynch/slogctx"
"github.com/chainguard-dev/slogctx"
)
var (