In java we do a:
if(log.isDebugEnabled) {
log.debug("blah blah blah");
}
so that it only logs if we have the log activated.
I was thinking of doing something like:
if(Historical) {
Print("blah");
}
but the only catch is that when I run the strategy live and it catches up it wouldn't print out the debugging info which is really useful to know what the strategy is doing.
Any other ideas?
If I had:
if(OptimizerInProgress) {
Print("...");
}
that would be ideal, as I want the logs all the time EXCEPT when optimizing. Is there a way to detect if the optimizer is running?
Comment