mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-29 03:32:49 +01:00
add info about logging to getting started section
This commit is contained in:
parent
eac3d8842d
commit
f5a1e00af9
1 changed files with 8 additions and 0 deletions
|
@ -165,6 +165,14 @@ _`Getting started`
|
|||
|
||||
View the last release API documentation at: https://core.telegram.org/bots/api
|
||||
|
||||
This library uses the `logging` module. To set up logging to standard output, put::
|
||||
|
||||
import logging
|
||||
logging.basicConfig(level=logging.DEBUG,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s')
|
||||
|
||||
at the beginning of your script.
|
||||
|
||||
--------------------
|
||||
_`The Updater class`
|
||||
--------------------
|
||||
|
|
Loading…
Reference in a new issue