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
Filter output #13
Comments
I was not able to figure out how to consistently get a default log level while allowing it to be set from the outside at the same time as having it work correctly for the global Since a logger cannot be serialized, it unfortunately cannot be added as a member of |
Does this help: https://stackoverflow.com/a/43794480/2305545 |
Probably at some point I am misunderstanding how Python works... However, I am still not sure how logging should really be implemented in this code, the desired behaviour would probably be the following:
But should log messages from |
So using Having different settings for writing to file and terminal is easy with |
On that note, we could also perform output analysis of clang and automatically detect if a warning was raised. |
I think it's best if the output from If we are successful in implementing logging, we should also have it write a log file automatically (e.g. |
Currently you are using print statements everywhere. However, if you would use functions like the python logging stuff, you could set different output levels. So people who want to integrate your code into their toolchain could silence your output or select how much output they want.
The text was updated successfully, but these errors were encountered: