diff --git a/Troubleshooting-issues.md b/Troubleshooting-issues.md new file mode 100644 index 0000000..1cc3a57 --- /dev/null +++ b/Troubleshooting-issues.md @@ -0,0 +1,17 @@ +Telethon makes use of the [`logging`](https://docs.python.org/3/library/logging.html) module, and you can enable it as follows: + +```python +import logging +logging.basicConfig(level=logging.INFO) +``` + +You can also use it in your own project very easily: + +```python +import logging +logger = logging.getLogger(__name__) + +logger.debug('Debug messages') +logger.info('Useful information') +logger.warning('This is a warning!') +```