Skip to content

Commit

Permalink
fix: use proper Sink API in README example
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoog committed Mar 4, 2021
1 parent 14b50c2 commit 751ddae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ go get cdr.dev/slog
Many more examples available at [godoc](https://godoc.org/cdr.dev/slog#pkg-examples).

```go
log := sloghuman.Make(os.Stdout)
log := slog.Make(sloghuman.Sink(os.Stdout))

log.Info(context.Background(), "my message here",
slog.F("field_name", "something or the other"),
Expand Down

0 comments on commit 751ddae

Please sign in to comment.