Updated Debugging with ksql.InjectLogger (markdown)

Vinícius Garcia 2023-07-18 19:04:18 -03:00
parent d1d9838cd5
commit 73c924e975

@ -8,7 +8,7 @@ You can either decide to use one of the two built-in loggers, by using:
Or you can create your own, by passing a custom function to InjectLogger, e.g.:
```golang
ctx := InjectLogger(ctx, func(ctx context.Context, values LogValues) {
ctx := ksql.InjectLogger(ctx, func(ctx context.Context, values LogValues) {
fmt.Println("the values are:", values.Query, values.Params, values.Err)
})
```