This commit is contained in:
Will McGugan 2020-03-27 09:03:22 +00:00
parent 31befa037c
commit c8a5fb6a25
1 changed files with 2 additions and 3 deletions

View File

@ -16,8 +16,7 @@ class RichHandler(Handler):
"""A logging handler that renders output with Rich. The time / level / message and file are displayed in columns. The
level is color coded, and the message is syntax highlighted.
Example::
Example:
import logging
from rich.logging import RichHandler
FORMAT = "%(message)s"
@ -26,7 +25,7 @@ class RichHandler(Handler):
)
log = logging.getLogger("rich")
log.info("Hello, World!")
Args:
level (int, optional): Log level. Defaults to logging.NOTSET.
"""