dtcenter / METplus

Python scripting infrastructure for MET tools.
https://metplus.readthedocs.io
Apache License 2.0
98 stars 37 forks source link

Enhancement: Add config option to write MET log output to terminal #2377

Closed georgemccabe closed 1 year ago

georgemccabe commented 1 year ago

Currently MET log output is not written to the terminal (screen) when METplus is run. The output is captured and written to the METplus log file output.

Describe the Enhancement

Look into enhancing the logic so that the MET log output can be output to the screen if desired.

Time Estimate

Estimate the amount of work required here. Issues should represent approximately 1 to 3 days of work.

Sub-Issues

Consider breaking the enhancement down into sub-issues.

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

Define the source of funding and account keys here or state NONE.

Define the Metadata

Assignee

Labels

Projects and Milestone

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

georgemccabe commented 1 year ago

The LOG_METPLUS variable can be set to empty to send all log output (including MET log output) to the terminal. I am adding a config variable LOG_TO_TERMINAL_ONLY to make this easier to configure. This should be sufficient for the NOAA EVS requirement to be able to capture MET errors in their job logs.

I didn't find an easy way to send the MET output (or output from any command run by the METplus wrappers) to both the terminal and the log file, but this may not be necessary since the above solution solves the original issue.