Initial commit

This commit is contained in:
Mohammad Aghdam
2025-10-05 07:52:39 +02:00
commit 90d2259345
29 changed files with 75192 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
import datetime
def log_and_print(message, is_error=False):
"""Prints a message with a timestamp."""
timestamp = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
log_level = "ERROR" if is_error else "INFO"
print(f"[{timestamp}] [{log_level}] {message}")