mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-21 00:40:01 +02:00
extend simple logging example
This commit is contained in:
parent
e61b2a4969
commit
8a8375735a
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user