author | renatofilho |
Tue Apr 03 16:05:00 2007 +0100 (2007-04-03) | |
branch | trunk |
changeset 483 | 8edb3b445cac |
parent 470 | 57833200a415 |
permissions | -rw-r--r-- |
morphbr@470 | 1 |
import time |
morphbr@470 | 2 |
|
morphbr@470 | 3 |
def now(): |
morphbr@470 | 4 |
return time.strftime("%Y-%m-%d %H:%M:%S"); |
morphbr@470 | 5 |
|
morphbr@470 | 6 |
def log(msg): |
morphbr@474 | 7 |
new_msg = "[%s] %s" % (now(), msg) |
morphbr@474 | 8 |
print new_msg |
morphbr@474 | 9 |
return new_msg |