docs: adds logging.basicConfig to logging section

This commit is contained in:
Mose Müller 2024-12-16 10:49:53 +01:00
parent a99db6f053
commit 10f1b8691c

View File

@ -247,6 +247,7 @@ You have two primary ways to adjust the log levels in `pydase`:
# logging.getLogger("pydase.data_service").setLevel(logging.DEBUG) # logging.getLogger("pydase.data_service").setLevel(logging.DEBUG)
# Your logger for the current script # Your logger for the current script
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
logger.info("My info message.") logger.info("My info message.")
``` ```