Hello, I'm testing out the debugging functionality using Debug() and am having trouble logging anything outside of a child class of QCAlgorithm. I have a main class LoggingTest and an indicator class Indicator. The Debug() method works from the first and doesn't work from the second. Is there another way to do this?

Here is my code for LoggingTest and Indicator with a commented out debugging line on the second file:

namespace QuantConnect { public class LoggingTest : QCAlgorithm { private string symbol = "IBM"; private Indicator indicator = new Indicator(); public override void Initialize() { SetStartDate(2017, 1, 1); SetEndDate(2017, 1, 7); SetCash(30000); AddEquity(symbol, Resolution.Hour); } public void OnData(TradeBars data) { String debug = "OnData(" + symbol + "): [" + data[symbol].Time + "]"; Debug(debug); indicator.AddSample(); } } }namespace QuantConnect { public class Indicator { private int _numSamples; public int Samples { get { return _numSamples; } } public Indicator() { this._numSamples = 0; } public decimal AddSample() { // Debug("AddSample()"); _numSamples++; return _numSamples; } } }

Author