dmlcloud.setup_logger

dmlcloud.setup_logger()

Setup the dmlcloud logger.

If torch.distributed is initialized, only the root-rank will log messages. Otherwise, all processes will log messages. Non-root processes will always log messages with severity ‘WARNING’ or higher to ensure important messages are not missed.

Usually, this function is called automatically when logging a message, and should not be called manually.