mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-06-12 15:57:12 +02:00
renames function, can now take the name of the logger (defaults to root logger)
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import logging
|
||||
|
||||
import pytest
|
||||
from pydase.utils.logging import configure_root_logger_with_pydase_formatter
|
||||
from pydase.utils.logging import configure_logging_with_pydase_formatter
|
||||
|
||||
|
||||
def test_log_error(caplog: pytest.LogCaptureFixture) -> None:
|
||||
@ -78,7 +78,7 @@ def test_before_configuring_root_logger(caplog: pytest.LogCaptureFixture) -> Non
|
||||
|
||||
|
||||
def test_configure_root_logger(caplog: pytest.LogCaptureFixture) -> None:
|
||||
configure_root_logger_with_pydase_formatter()
|
||||
configure_logging_with_pydase_formatter()
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.info("Hello world")
|
||||
|
||||
|
Reference in New Issue
Block a user