def log(str): global monitor if not monitor: try: from freeciv import monitor except ImportError: print str return monitor.log('features', str)
def console_line(self, text): if self.out_window_callback: self.out_window_callback(text) monitor.log('outwindow', text) if features.get('debug.outwindow'): print '[OutWindow]', text