-
Notifications
You must be signed in to change notification settings - Fork 439
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
Consider providing log output sink in Application::Configuration alongside quiet/verbose flags #501
Comments
Hi! This info is printed there by default because it proved to be essential when debugging driver issues. Nevertheless, if you want to silence/redirect it, there's two options:
One item on my TODO list is support for custom sinks in the |
Thank you for your quick answer! Yes the current API for debugging is quite bad. I think a good way to handle this would be to add an option to pass a custom debug sink to the constructor of the Application. Maybe I will try to add this feature and make a pull request if I will find some free time. |
Assuming the reliance on |
", what would this offer over the scoped redirect I mentioned above?" It would allow for setting the custom debug sink without the need for using However I was thinking about it some more and now I think that there aren't any benefits of using this over what you proposed. Sorry for asking the beginners question here in issues. I didn't notice glitter chat link in readme. |
No problem at all :) What you self-labeled as a "beginner" question was to me a fresh view on a common pain point, and that's very valuable -- after working with the same APIs all these years, my mind is so rigid that it never occured to me that the output redirection could be done this way, in a constructor. (The recent addition of I'm not discarding your idea, just need to evaluate the pros and cons first. Depending on how the replacement for |
Hello,
I'm using Magnum version 2020.06-1 and every time I run my program I'm getting debug information in the console.
I'm using custom logging library and I would like to either silence the output from Magnum or redirect it to a custom sink.
Is there an easy way to do this?
The text was updated successfully, but these errors were encountered: