icclim.logger#

Module Contents#

class icclim.logger.VerbosityRegistry[source]#

Registry classes acts as fancy enums.

It allows to easily store and find constants of similar type. Registries are namespaces, so there is no need to instantiate it or any of its subclasses, every item is a class attribute.

Notes

Registries are not meant to store large collections, they are just fancy lookup tables for items with aliases and no case sensitivity.

static get_item_aliases(item: Verbosity) list[str][source]#

Get the aliases for the given item.

Parameters:

item (T) – The item to get aliases for.

Returns:

A list of aliases for the item.

Return type:

list[str]

Notes

Should be overridden in subclasses.

class icclim.logger.IcclimLogger(verbosity: Verbosity)[source]#

Singleton to display and control logs in icclim library.