mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Created Troubleshooting issues (markdown)
parent
3c5096c8bd
commit
cb836d66b9
17
Troubleshooting-issues.md
Normal file
17
Troubleshooting-issues.md
Normal file
|
@ -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!')
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user