httomo.utils.log_once#
- httomo.utils.log_once(output: Any, level: int = 20) None [source]#
Log output to console and log file if the process’ global rank is zero.
- Parameters:
output (Any) – The item to be printed.
level (int, optional) – The level of the log message. See https://docs.python.org/3/library/logging.html#logging-levels.