center print level

This commit is contained in:
Mayeul Aubin 2025-03-07 18:10:47 +01:00
parent cf5c96c28e
commit 869801d537

View file

@ -131,13 +131,13 @@ def print_level(level:int, module:str):
"""
from datetime import datetime
max_len_module = 10
max_len_module = 14
date = datetime.now()
out=""
out+=date.strftime("%H:%M:%S")
out+=" | "
out+=module.upper().ljust(max_len_module)
out+=module.upper().center(max_len_module)
out+=" | "
out+=">"*level
out+=" "