opm-common icon indicating copy to clipboard operation
opm-common copied to clipboard

Overwhelmig number of ways to log.

Open blattms opened this issue 4 years ago • 3 comments

That it is a bit too much for me without documentation. I can distinguish what info, warning, debug, maybe even bug is for, but what is up with rest of the methods like problem (Problematic but not really a bug? Same as warning?), and note (how is that different from info?) in OpmLog.hpp?

blattms avatar Sep 16 '21 09:09 blattms

These are - for good or for bad - taken from Eclipse.; but you are right we do not really follow eclipse through here

joakim-hove avatar Sep 16 '21 09:09 joakim-hove

Problem means numerical problem as per time step chop:

@--PROBLEM  AT TIME      646.0   DAYS    ( 8-AUG-2020):
 @           NON-LINEAR EQUATION CONVERGENCE FAILURE                         
 @           ITERATION LIMIT REACHED - TIME STEP CHOPPED FROM   0.98      

So all the problems are Markus' problems :-)

No such thing as Note in the commercial simulator.

OPMUSER avatar Sep 16 '21 09:09 OPMUSER

That it is a bit too much for me without documentation. I can distinguish what info, warning, debug, maybe even bug is for, but what is up with rest of the methods like problem (Problematic but not really a bug? Same as warning?), and note (how is that different from info?) in OpmLog.hpp?

I believe note and info are there to distinguish between PRT and LOG/terminal. Both are just informational messages that are not highlighted in any way. Debug messages go to the DBG file and are intended for developers. Warning, bug and problem are typically inspired from Eclipse, but there was from day one no intent to copy Eclipse. We wanted to do better.

alfbr avatar Sep 16 '21 10:09 alfbr