/ modules / utils.py
utils.py
1  def log_violation(message):
2      print(f"[VIOLATION] {message}")
3      # Optionally, write to a log file
4      with open("violations.log", "a") as f:
5          f.write(f"{message}\n")