Skip to content

Commit

Permalink
v9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Sinus44 authored Jan 23, 2023
1 parent 4dc2daf commit e28e176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine/Logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ def log(*text):

file.close()

def print(*text):
def print(*text, end="\n"):
"""Логирование в консольnПринимает: (*strings) - строки для логгирования"""
date = datetime.datetime.now()

for i in text:
i = str(i)
print(f"[{'{:2.0f}'.format(date.hour)}:{'{:2.0f}'.format(date.minute)}:{'{:2.0f}'.format(date.second)}]: {str(i)}\n")
print(f"[{'{:2.0f}'.format(date.hour)}:{'{:2.0f}'.format(date.minute)}:{'{:2.0f}'.format(date.second)}]: {str(i)}{end}")

0 comments on commit e28e176

Please sign in to comment.