We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf10506 commit 34ee4aaCopy full SHA for 34ee4aa
1 file changed
README.md
@@ -209,14 +209,16 @@ The logger can be modified by assigning a logger to `orchestra.Logger`
209
210
```go
211
type Logger interface {
212
- Log(msg string, attrs ...slog.Attr)
+ Info(msg string, attrs ...slog.Attr)
213
+ Error(msg string, attrs ...slog.Attr)
214
+ WithGroup(name string) Logger
215
}
216
```
217
218
If you have an existing `*slog.Logger`, you can create an `orchestra.Logger` by using the `orchestra.LoggerFromSlog` function.
219
220
-orchestraLogger := orchestra.LoggerFromSlog(slog.Default())
221
+orchestraLogger := orchestra.LoggerFromSlog(slog.LevelInfo, slog.LevelError, slog.Default())
222
223
224
## Contributing
0 commit comments