reset_logfiles¶
- reset_logfiles(casacalls_logfile=None, casa_logfile=None, prepend=False)[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 (str | None) -- Custom filename for the casacalls log. If None, a default name based on the hostname is used.
casa_logfile (str | None) -- Custom filename for the casa log. If None, a timestamped name is generated.
prepend (bool) -- If True, content from the previous casa logfile is copied to the beginning of the new logfile.
- Return type:
None