def log_error(msg): frame = traceback.extract_stack()[-2] log_clean( 0, "{0}: {1}.{2}({3}) - {4}".format(log_time(), frame[0], frame[2], frame[1], msg), ) sys.stderr.write("{0}\n".format(msg))
def log(msg, level=0): frame = traceback.extract_stack()[-2] log_clean( level, "{0}: {1}.{2}({3}) - {4}".format(log_time(), frame[0], frame[2], frame[1], msg), ) if level < 1: sys.stdout.write("{0}\n".format(msg))
def _timeString1(): """time string as: "2002/11/18 12:56:34" """ return log_time()
def _timeString1(): """time string as: "2002/11/18 12:56:34" """ return log_time()