I moved my project to the LEAN CLI specifically so I can do more logging to dig into some problems. I expected I would no longer have a Logging limit. But this error occurred after logging 500 lines, and it stopped Logging. These are most definitely Self.Log() statements, not Self.Debug.
Is there a configuration value I can set to open this up?
Lee Allen
Well I was going to ping/kick this to try to get a response, but the problem has not happened again since the first day. It seems I can log all I want, now.
Mia Alissi
It's great to hear that you're no longer experiencing issues with logging in your algorithm. Logging is indeed a crucial part of algorithm development and debugging. It allows you to understand the behavior of your algorithm and keep records to compare against backtest results.
Remember, if you're using QuantConnect, there are some rules to follow when logging:
Log
statements to debug your backtests and live trading algorithms.OnEndOfAlgorithm
event handler.Here's how you can add a log statement in Python:
If you're running algorithms on QuantConnect, you must stay within the log quota. To only log when your algorithm is live, you can use the
LiveMode
property:If you encounter any issues in the future, don't hesitate to ask for help. Happy coding!
Sources:
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.
Lee Allen
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!