| author | renatofilho |
| Wed Apr 04 22:11:50 2007 +0100 (2007-04-04) | |
| branch | trunk |
| changeset 503 | b0e8a532e882 |
| child 511 | 16312d0021cb |
| permissions | -rw-r--r-- |
| renatofilho@484 | 1 |
import time |
| renatofilho@484 | 2 |
|
| renatofilho@484 | 3 |
def now(): |
| renatofilho@484 | 4 |
return time.strftime("%Y-%m-%d %H:%M:%S");
|
| renatofilho@484 | 5 |
|
| renatofilho@484 | 6 |
def log(msg): |
| renatofilho@484 | 7 |
new_msg = "[%s] %s" % (now(), msg) |
| renatofilho@484 | 8 |
print new_msg |
| renatofilho@484 | 9 |
return new_msg |