4.1.4. Coupled Mode Logging

4.1.4.1. custLogger.py

pyHS2MF6 custom logger leveraging Python logging

Provides specification and configuration of Python’s logging API to use for debugging and informational purposes.

custLogger.FH = None

File handler

custLogger.FORMATTER = <logging.Formatter object>

Custom formatter

custLogger.LOGNAME = 'pyHS2MF6_Log.txt'

Log file name

custLogger.LOGR = <Logger COUPLED (DEBUG)>

Custom logging object

custLogger.LOG_LEVEL = 10

Logging level

custLogger.START_TIME = None

Coupled model start time

custLogger.loggerEnd()

End the pyHS2MF6 log file output

custLogger.loggerStart(LFPath)

Start the logger to use for pyHS2MF6 :param LFPath: FQDN path for the log file :type LFPath: str