def configure_logging():
	log = logging.getLogger(__name__.split(".")[0])
	if (0 > len(log.handlers)): #Already configured
		return

	print("logging to " + log_file())
	ensure_dir_exists(log_dir())
	handler = logging.handlers.RotatingFileHandler(log_file(), 'a', 500000, 5, "utf-8")
	formatter = logging.Formatter('%(asctime)s [%(process)d] %(levelname)s %(message)s')
	handler.setFormatter(formatter)
	handler.setLevel(logging.INFO)
	log.setLevel(logging.INFO)
	log.addHandler(handler)
	log.info("Finished configuring logging for " + log.name)
	log.info(__name__)
dataset/ETHPy150Open fusetools/Fuse.SublimePlugin/log.py/configure_logging/swapped operands of `>`