log_file - MadBomber/aia GitHub Wiki

--log_file and --no-log_file

Unlike the --out_file, the --log_file option is used to specify a file where all AIA activity will be logged. You typically specify the log_file in an envar or a config file so that all AIA activity from one execution to the next are saved for review. The --out_file is used for a single execution of the AIA. The log_file is used for all executions of the AIA.

envar: AIA_LOG_FILE default: $AIA_PROMPTS_DIR/_prompts_YYYYMMDD.log

Why keep a log file?

The log file can be a safety net for debugging and troubleshooting. It can also be used to track the progress of a long-running process or to recover previous responses duning a multi-day refactoring session. Basically it is your long term memory of what you did using the AIA.

AIA implements a log rotation process to keep the active log file from getting too big; but, it has no retention policy. It keeps all versions of the log file. This means that occasionally you may need to go into the directory where you are keeping the AIA log file and delete the old versions you no longer need.