morphbr@470: import time morphbr@470: morphbr@470: def now(): morphbr@470: return time.strftime("%Y-%m-%d %H:%M:%S"); morphbr@470: morphbr@470: def log(msg): morphbr@470: print "[%s] %s" % (now(), msg)