MPAS-Dev / MPAS-Tools

MPAS Tools Repository
Other
39 stars 65 forks source link

Add support for logging (e.g. to log files) #385

Closed xylar closed 3 years ago

xylar commented 3 years ago

This merge adds a logging module to the conda package that handles making a logger that outputs to sdtout/stderr. It also supports running a subprocess and redirecting the output to the logger.

Logging support has been added to the JIGSAW driver (along with a bit of clean-up).

The progress bar in the paraview extractor has been made optional.

Logging support has been added to both the ocean and general mesh builder.

xylar commented 3 years ago

Testing

This has been tested in both the new compass 1.0 package and the current compass setup, and output is as expected (redirecting to logging files when requested, going to stdout/stderr otherwise).