diff --git a/rich/logging.py b/rich/logging.py index a439a9d0..bfbbec41 100644 --- a/rich/logging.py +++ b/rich/logging.py @@ -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. """