Fix docstring (#1876)

pull/1870/merge
Song Lin 2022-04-13 19:36:32 +08:00 committed by GitHub
parent 85b37e7ba4
commit 5cded66a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ def print_log(msg, logger=None, level=logging.INFO):
msg (str): The message to be logged.
logger (logging.Logger | str | None): The logger to be used.
Some special loggers are:
- "silent": no message will be printed.
- other str: the logger obtained with `get_root_logger(logger)`.
- None: The `print()` method will be used to print log messages.