Re: Tracing
Posted by Joseph Wang on
URL: http://quantlib.414.s1.nabble.com/FdAmericanOption-problem-and-Tracing-tp3483p3491.html
Luigi Ballabio wrote:
>
> Finally, I intentionally wrote a generic "tag" variable, as I'm not
> sure whether a number or a string should be used. Thoughts?
The way that java does it is to use integer constants. This makes it
easier to compare and for example
turn on all debug statements above level N or below level M. If you set
the integers to be constants,
then you don't lose anything regarding readability.
The odd thing is that I would have imagined that there is a standard
tracing module in C++ but
there doesn't seem to be one.