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:
parent
9bf46567a6
commit
7a6e5ac694
8 changed files with 11 additions and 11 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# slogctx
|
||||
|
||||
[](https://pkg.go.dev/github.com/wlynch/slogctx)
|
||||
[](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
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"log/slog"
|
||||
"os"
|
||||
|
||||
"github.com/wlynch/slogctx"
|
||||
"github.com/chainguard-dev/slogctx"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import (
|
|||
"context"
|
||||
"log/slog"
|
||||
|
||||
"github.com/wlynch/slogctx"
|
||||
"github.com/chainguard-dev/slogctx"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
|||
|
|
@ -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
2
go.mod
|
|
@ -1,3 +1,3 @@
|
|||
module github.com/wlynch/slogctx
|
||||
module github.com/chainguard-dev/slogctx
|
||||
|
||||
go 1.21.2
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
"io"
|
||||
"log/slog"
|
||||
|
||||
"github.com/wlynch/slogctx"
|
||||
"github.com/chainguard-dev/slogctx"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue