7 lines
200 B
Python
7 lines
200 B
Python
import datetime
|
|
|
|
def log(title, severity, msg) :
|
|
when = datetime.datetime.today().strftime("[%Y-%m-%d %H:%M:%S]")
|
|
what = title + " - " + severity + " - " + msg
|
|
print(when + " " + what, flush=True)
|