reset_logfiles¶
- reset_logfiles(casacalls_logfile: str | None = None, casa_logfile: str | None = None, prepend: bool = False) None[source]¶
Reset CASA/Pipeline logfiles for the current CASA/Pipeline session.
This function is intended to be used at the beginning of each processing session after the CASA process switches to a new working directory. It configures both the casacalls and casa log files with optional content preservation from previous logs.
- Parameters:
casacalls_logfile -- Custom filename for the casacalls log. If None, a default name based on the hostname is used.
casa_logfile -- Custom filename for the casa log. If None, a timestamped name is generated.
prepend -- If True, content from the previous casa logfile is copied to the beginning of the new logfile.