From f5a1e00af9e20c65436f9777bf11f218e1f79dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sun, 7 Feb 2016 22:25:16 +0100 Subject: [PATCH] add info about logging to getting started section --- README.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.rst b/README.rst index 2624b83b2..0bc9c52b5 100644 --- a/README.rst +++ b/README.rst @@ -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` --------------------