from sys import stderr from Config import * class Log: @staticmethod def info(someString): if INFO: f = open(LOGFILE, "a") f.write( "flower: %s \n" % someString ) f.close() if DEBUG: print(someString) @staticmethod def debug(someString): if DEBUG: f = open(LOGFILE, "a") f.write( "flower: %s \n" % someString ) f.close()