I'm new to the platform. I'm trying to analyse my code by adding Logs but no Logs are getting added.

class MultidimensionalTachyonReplicator(QCAlgorithm):

def OnData(self, data):
        if not self.Portfolio.Invested:
          self.SetHoldings("SPY", 1)


The Log file generated has no manual entries.(The RuntimeError occurs after OnData() gets excecuted.

2014-11-01 00:00:00 Launching analysis for e916c25f9f46f645a51d881deabed7ab with LEAN Engine v2.
2014-11-03 00:00:00 Runtime Error: NameError : name 'asset1' is not defined NameError : name 'asset1' is not defined
2014-11-03 00:00:00 Algorithm Id:(e916c25f9f46f645a51d881deabed7ab) completed in 22.90 seconds at 0k data points per second. Processing total of 10,088 data points.

Please help.