I have been trying to do something as simple logging of various variables. In can put them in debug statements without any problems. I am also able to use self.log for normal text 

self.Debug(str(spy_price)) <-- works fine
self.log("test") <-- works fine
self.log(str(spy_price)) <-- throws an error

The error was AttributeError : 'ProportionalSimpleMovingAverage' object has no attribute 'log'.

And my class references QCAlgorithm 

Can someone please explain why log entries cannot contain anything other than literal text? Are there other ways to get runtime data stored in the log files? The Debug window unfortunately doesn't provide the ability to go far enough back once the text scrolls off the window.