Improved logging in backtesting mode.