Is there any way I can increase the max size of an algo's log file? Or, ask the QuantConnect servers to use a rolling log file, so that if the max file size is reached the server will overwrite the file starting at the beginning?
QUANTCONNECT COMMUNITY
Is there any way I can increase the max size of an algo's log file? Or, ask the QuantConnect servers to use a rolling log file, so that if the max file size is reached the server will overwrite the file starting at the beginning?
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Jared Broad
List _logs = new List();
public override void OnEndOfAlgorithm()
{
foreach(string msg in _logs.Reverse().Take(100)) Log(msg);
}
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Mike Ellertson
Mike Ellertson
List _logs = new List();
_logs.Add("line 1");
// ...
_logs.Add("line 150");
public void OnEndOfAlgorithm()
{
Debug("OnEndOfAlgorithm() called.");
_logs.Reverse();
_logs = (List)_logs.Take(10);
foreach(string line in _logs)
{
Debug(line);
}
}
Mike Ellertson
Michael Handschuh
Mike Ellertson
public override void OnEndOfAlgortihm()
And it works now. I have another problem with it, but it's due to the way _logs.Take() is being called. I'll sort through it. For now, it's a lower priority for me.Mike Ellertson
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!