mmagic.utils.logger
¶
Module Contents¶
Functions¶
|
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’.