extend simple logging example

This commit is contained in:
Mose Müller 2023-10-16 17:11:46 +02:00
parent e61b2a4969
commit 8a8375735a

View File

@ -493,10 +493,14 @@ You can change the log level of the logger by either
```python ```python
# <your_script.py> # <your_script.py>
import logging
from pydase.utils.logging import setup_logging from pydase.utils.logging import setup_logging
setup_logging("INFO") setup_logging("INFO") # or setup_logging(logging.INFO)
logger = logging.getLogger(__main__)
# ... and your log
logger.info("My info message.")
``` ```
## Documentation ## Documentation