declutter the top level log file

The top level log file mpsd-software.log could be simplified as follows:

  • Before:
--------------------------------------------------
2023-06-28T11:18:02.381498, /home/karnada/micromamba/envs/mpsd-installer/bin/mpsd-software init
MPSD Software manager version: 2023.6.27
Initialising MPSD software instance at /tmp/testmpsdinstaller.
--------------------------------------------------
2023-06-28T11:18:10.718020, /home/karnada/micromamba/envs/mpsd-installer/bin/mpsd-software install dev-23a foss2021a-mpi
MPSD Software manager version: 2023.6.27
Spack environments branch: releases/dev-23a (commit hash: 91ba21f40ff9e635da15a4c154360f5e969d6fe4)
installing foss2021a-mpi and logging at /tmp/testmpsdinstaller/dev-23a/logs/dev-23a_zen3_2023-06-28T11-18-09_BUILD_foss2021a-mpi_install.log
CMD: bash /tmp/testmpsdinstaller/dev-23a/spack-environments/spack_setup.sh -b foss2021a-mpi
  • After :
2023-06-28T11:18:02.381498
$ /home/karnada/micromamba/envs/mpsd-installer/bin/mpsd-software init
MPSD Software manager version: 2023.6.27
Initialising MPSD software instance at /tmp/testmpsdinstaller.

2023-06-28T11:18:10.718020
$ /home/karnada/micromamba/envs/mpsd-installer/bin/mpsd-software install dev-23a foss2021a-mpi
> logging at /tmp/testmpsdinstaller/dev-23a/logs/dev-23a_zen3_2023-06-28T11-18-09_APEX.log

Changes:

  • no --- separator, use dates as the separator instead
  • link the APEX log instead of the build log
  • add $ and > where possible
  • log the software version only when apex file is not created ( for eg init or status etc )
  • In the changes shown above the lines that are removed ( like the CMD: bash ... ) are logged in the APEX file when possible