S1005403_RisCC/target_simulator/config.py

32 lines
900 B
Python

# target_simulator/config.py
"""
Global configuration settings for the Target Simulator application.
"""
# Basic configuration for the logger
LOGGING_CONFIG = {
"format": "%(asctime)s [%(levelname)-8s] %(name)-25s : %(message)s",
"date_format": "%H:%M:%S",
"default_root_level": "DEBUG",
"enable_console": True,
"colors": {
"DEBUG": "gray",
"INFO": "black",
"WARNING": "orange",
"ERROR": "red",
"CRITICAL": "red",
},
}
# --- Debug Configuration ---
DEBUG_CONFIG = {
"save_tftp_scripts": True, # Set to False to disable
"temp_folder_name": "Temp",
# Enable saving of IO traces (sent/received positions) to CSV files in Temp/
# Set to True during debugging to collect logs.
"enable_io_trace": False,
"io_trace_sent_filename": "sent_positions.csv",
"io_trace_received_filename": "received_positions.csv",
}