Skip to content

Commit

Permalink
feat(kslog): fixed module & use example instead of test to demonstrat…
Browse files Browse the repository at this point in the history
…e usage
  • Loading branch information
sbuliarca committed Oct 16, 2023
1 parent 3374c33 commit 70fdfe1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin/kslog/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/utilitywarehouse/franz-go/plugin/kslog
module github.com/twmb/franz-go/plugin/kslog

go 1.21.0

Expand Down
9 changes: 5 additions & 4 deletions plugin/kslog/kslog_test.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package kslog
package kslog_test

import (
"log/slog"
"testing"

"github.com/twmb/franz-go/pkg/kgo"
"github.com/twmb/franz-go/plugin/kslog"
)

func TestNew(_ *testing.T) {
l := New(slog.Default())
func ExampleNew() {
l := kslog.New(slog.Default())

l.Log(kgo.LogLevelInfo, "test message", "test-key", "test-val")
// Output:
}

0 comments on commit 70fdfe1

Please sign in to comment.