mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-04-21 13:37:48 +00:00
6 lines
177 B
Python
6 lines
177 B
Python
from datetime import datetime
|
|
|
|
|
|
def log(what, level, msg):
|
|
when = datetime.now().strftime("[%Y-%m-%d %H:%M:%S]")
|
|
print(f"{when} - {what} - {level} - {msg}", flush=True)
|