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@474: new_msg = "[%s] %s" % (now(), msg) morphbr@474: print new_msg morphbr@474: return new_msg