-
Notifications
You must be signed in to change notification settings - Fork 25
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
Logging #731
Comments
@RemDelaporteMathurin I also think that some re-work would help in the case of parallel computing, As I observe, the current info messages are printed by each core that I provide with |
What do you think? Would it be better to use the fenics logging system or rather make our own with maybe different levels? |
Adapting the fenics log system seems to be a good idea. We can override some of fenics methods similar to Newton solver. Though, it's a tough question. I think we can re-create log levels 50, 40, 30, and probably 20, whereas 16, 13, 10 - I haven't tested/used a lot yet. At least, I think that festim and fenics errors/warnings should be clearly divided, the messages should be appropriately spread across cores during parallel computing, and tracing of festim processes is needed |
We don't have to recreate all the log levels. I think we can start with just a binary system like INFO and NOTHING. And we will figure out later if we need to add levels
By clearly divided do you mean that we shouldn't use fenics' log system? |
I meant a dedicated message as:
This also implies that |
Yes we don't want to make our own errors like this. But what we want is for users to have enough information about what is going on (eg. Defining boundary conditions, defining source terms, solving nonlinear problem for solubility, etc. ) but with the possibility to disable it if needed. |
Are there any thoughts on how FESTIM log_levels should be related to fenics log_levels? |
I think we need to sit down and:
I think we can simply use the fenics logging system instead of making another one, for the sake of simplicity. |
Sometimes it is hard to know what FESTIM is doing and when it's failing.
We have some print statements here and there but a lot is lost in between.
We would need a more robust way of logging what happens, with different logging levels (just like fenics has a log system).
I believe fenics uses this.
I think we can do something similar.
The text was updated successfully, but these errors were encountered: