sciai.utils.print_log

View Source On Gitee
sciai.utils.print_log(*msg, level=logging.INFO, enable_log=True)[source]

Print in the standard output stream as well as into the log file.

Parameters
  • *msg (any) – Message(s) to print and log.

  • level (int) – Log level. Default: logging.INFO.

  • enable_log (bool) – Whether to log the message. In some cases, like before logging configuration, this flag would be set as False. Default: True.