Shortcuts

mmedit.utils.print_colored_log

mmedit.utils.print_colored_log(msg, level=20, 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: zyh/doc-notfound-extend
Versions
master
latest
stable
zyh-doc-notfound-extend
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.