Using slog instead of log #768
Unanswered
purpose-robot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
how can I use slog instead of log when using goose?
When trying to set the default logger to slog, I got the following error message:
cannot use logger (variable of type *slog.Logger) as goose.Logger value in argument to goose.SetLogger: *slog.Logger does not implement goose.Logger (missing method Fatalf)
I figured out that I have to implement the missing
Fatalf
function in slog by myself but since I am still a beginner, I am not quite sure how to do this.Can someone provide me with a working example or explain how I could achieve this?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions