-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn off logger or noop logger #383
Comments
You could implement your own noop Logger and set it via You might also be able to set this globally We have leaked In the interim (for the current I double-checked and we indeed use the correct logger throughout goose
side note, I still genuinely wish there was a standard library interface so goose (and literally every. single. other. package didn't have to define their owner interface). |
Yeah, a standard logger interface would be nice for sure. For the moment I am using So, yeah, for the moment the best approach is probably Thanks for the thoughts! |
Let's keep this open. Adding a single Quite often packages that expose interfaces will have convenience functions like this, so not totally against it. |
Simple enough to do, and I can see this being useful. |
Oh, nice! Thank you. I will use this for sure. I am partial to |
Ye that's a good point, I've seen nop used quite often as well, let's go with that. |
This is great. Thank you! |
Hi again! In my tests I am using goose to migrate my database to the latest version, and it works great. The problem is that when I run benchmarks goose is logging some statements in-between which affects the output. I have another process which consumes that output, so I had to turn off logging for that one section of my code. Something like
I thought it would be nice if there was some way that I could turn off logging in goose, or at least if there was a noop logger I could give to
SetLogger
, so something likeHappy to make a PR if you would consider this. Or perhaps there is a better solution?
Thanks!
The text was updated successfully, but these errors were encountered: