Shortcuts

mmagic.utils.logger

Module Contents

Functions

print_colored_log(msg[, level, color])

Print colored log with default logger.

mmagic.utils.logger.print_colored_log(msg, level=logging.INFO, color='magenta')[source]

Print colored log with default logger.

Parameters
  • msg (str) – Message to log.

  • level (int) – The root logger level. Note that only the process of rank 0 is affected, while other processes will set the level to “Error” and be silent most of the time.Log level, default to ‘info’.

  • color (str, optional) – Color ‘magenta’.

Read the Docs v: latest
Versions
latest
stable
0.x
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.