Logging API

hictkpy.logging.setLevel(level: int | str) None

Test the log level for hictkpy’s logger. Accepts the predefined levels defined by the logging module.

Using this method instead should be preferred to tweak the log level with logging.getLogger("hictkpy").setLevel("INFO"), as hictkpy.logging.setLevel() sets the log level also on the underlying the C++ logger, thus avoiding needlessly producing log messages on the C++ side to then discard them once they reach the Python logger.