nwm_region_mgr.utils.logging_utils.CustomLoggingFormatter#

class nwm_region_mgr.utils.logging_utils.CustomLoggingFormatter(fmt=None, datefmt=None, style='%', validate=True, *, defaults=None)[source]#

Custom logging formatter to change ‘ERROR’ to ‘SEVERE’, and ‘CRITICAL’ to ‘FATAL’.

This is to be consistent with logging levels in ngen and ngen-cal.

Attributes

default_msec_format

default_time_format

Methods

converter

localtime([seconds]) -> (tm_year,tm_mon,tm_mday,tm_hour,tm_min,

format(record)

Format the log record.

formatException(ei)

Format and return the specified exception information as a string.

formatMessage(record)

formatStack(stack_info)

This method is provided as an extension point for specialized formatting of stack information.

formatTime(record[, datefmt])

Return the creation time of the specified LogRecord as formatted text.

usesTime()

Check if the format uses the creation time of the record.