mirror of https://github.com/Textualize/rich.git
Merge pull request #161 from ewels/patch-1
Logging docs - fix 'extras' typo
This commit is contained in:
commit
c508c5094d
|
@ -16,8 +16,8 @@ Here's an example of how to set up a rich logger::
|
|||
log = logging.getLogger("rich")
|
||||
log.info("Hello, World!")
|
||||
|
||||
Rich logs won't process console markup by default, but you can enable markup per log statement with the ``extras`` argument as follows::
|
||||
Rich logs won't process console markup by default, but you can enable markup per log statement with the ``extra`` argument as follows::
|
||||
|
||||
log.error("[bold red blink]Server is shutting down![/]", extras={"markup": True})
|
||||
log.error("[bold red blink]Server is shutting down![/]", extra={"markup": True})
|
||||
|
||||
There are a number of options you can use to configure logging output, see the :class:`~rich.logging.RichHandler` reference for details.
|
||||
There are a number of options you can use to configure logging output, see the :class:`~rich.logging.RichHandler` reference for details.
|
||||
|
|
Loading…
Reference in New Issue