You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pFlogger library, developed by Tom Clune at NASA GMAO, is a logging package based on the python logger package which uses a hierarchy of loggers, such as info, warnings, error, and debug. This library has been included in GCHP builds for a while but was not used.
With the update to MAPL 2.6.3 in GCHP 13.1.0 we will begin to use it. GMAO made updates to MAPL ExtData to replace all debug prints that were enabled via keyword in ExtData.rc with calls to the new logger. Varying levels of prints can be enabled from new config file logging.yml. The toggle in ExtData.rc and auto-update of it in runConfig.sh are removed. All logger output is sent to new output log file allPEs.log. Please note that regular prints in GCHP are still sent to stdout which is a different stream than the one used by pFlogger.
There is potential for GCHP to use the new logger for components beyond MAPL ExtData. This discussion is about expanding usage by adding sections to the logging.yml file and including at least one example usage per GCHP component.
Using the logger in GEOS-Chem would require blocking off the code with pre-processor conditions requiring use of MAPL which by extension requires the pFlogger library. We may therefore want to limit usage in GEOS-Chem proper. If you have thoughts on this please make comments here.
The text was updated successfully, but these errors were encountered:
In terms of use in GEOS-Chem, I'd suggest putting a redirect to pFlogger in the existing GEOS-Chem debug routines (in error_mod.F90) when compiling for GCHP. I totally agree that we wouldn't want to scatter new C preprocessor statements throughout the core code. In the long run I'd love to have a routine in error_mod.F90 which we use for all standard output statements, as then we could redirect that for the various codes - but that would incur some implementation overhead.
The pFlogger library, developed by Tom Clune at NASA GMAO, is a logging package based on the python logger package which uses a hierarchy of loggers, such as info, warnings, error, and debug. This library has been included in GCHP builds for a while but was not used.
With the update to MAPL 2.6.3 in GCHP 13.1.0 we will begin to use it. GMAO made updates to MAPL ExtData to replace all debug prints that were enabled via keyword in
ExtData.rc
with calls to the new logger. Varying levels of prints can be enabled from new config filelogging.yml
. The toggle inExtData.rc
and auto-update of it inrunConfig.sh
are removed. All logger output is sent to new output log fileallPEs.log
. Please note that regular prints in GCHP are still sent to stdout which is a different stream than the one used by pFlogger.There is potential for GCHP to use the new logger for components beyond MAPL ExtData. This discussion is about expanding usage by adding sections to the
logging.yml
file and including at least one example usage per GCHP component.Using the logger in GEOS-Chem would require blocking off the code with pre-processor conditions requiring use of MAPL which by extension requires the pFlogger library. We may therefore want to limit usage in GEOS-Chem proper. If you have thoughts on this please make comments here.
The text was updated successfully, but these errors were encountered: