diff options
| author | numbermaniac <[email protected]> | 2020-10-17 13:46:31 +1100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-10-16 22:46:31 -0400 |
| commit | d6df55afe2301241325ad425bdd5443b144194d0 (patch) | |
| tree | dc974cd6632557317220e641ccf84ed04ecc4345 /docs/logging.rst | |
| parent | Use Hashable mixin for Message (diff) | |
| download | discord.py-d6df55afe2301241325ad425bdd5443b144194d0.tar.xz discord.py-d6df55afe2301241325ad425bdd5443b144194d0.zip | |
logging.rst: Fix some typos and grammar errors
Diffstat (limited to 'docs/logging.rst')
| -rw-r--r-- | docs/logging.rst | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/logging.rst b/docs/logging.rst index 4724d02e..c51ebdc9 100644 --- a/docs/logging.rst +++ b/docs/logging.rst @@ -14,16 +14,16 @@ Configuration of the ``logging`` module can be as simple as:: logging.basicConfig(level=logging.INFO) Placed at the start of the application. This will output the logs from -discord as well as other libraries that uses the ``logging`` module +discord as well as other libraries that use the ``logging`` module directly to the console. The optional ``level`` argument specifies what level of events to log -out and can any of ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO``, and +out and can be any of ``CRITICAL``, ``ERROR``, ``WARNING``, ``INFO``, and ``DEBUG`` and if not specified defaults to ``WARNING``. -More advance setups are possible with the :mod:`logging` module. To for -example write the logs to a file called ``discord.log`` instead of -outputting them to to the console the following snippet can be used:: +More advanced setups are possible with the :mod:`logging` module. For +example to write the logs to a file called ``discord.log`` instead of +outputting them to the console the following snippet can be used:: import discord import logging @@ -34,8 +34,8 @@ outputting them to to the console the following snippet can be used:: handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s')) logger.addHandler(handler) -This is recommended, especially at verbose levels such as ``INFO``, -and ``DEBUG`` as there are a lot of events logged and it would clog the +This is recommended, especially at verbose levels such as ``INFO`` +and ``DEBUG``, as there are a lot of events logged and it would clog the stdout of your program. |