'Enable/disable debug level messages in the strategy and backtesting broker.
This is enabled by default.'

def setDebugMode(self, debugOn):

    level = (logging.DEBUG if debugOn else logging.INFO)
    self.getLogger().setLevel(level)
    self.getBroker().getLogger().setLevel(level)
