# Path: mapchete/log.py
# def user_process_logger(pname):
#     """Logger to be used within a user process file."""
#     warnings.warn(
#         DeprecationWarning(
#             "user_process_logger() deprecated, you can use standard logging module "
#             "instead."
#         )
#     )
#     return logging.getLogger("mapchete.user_process." + pname)
# 
# def driver_logger(dname):
#     """Logger to be used from a driver plugin."""
#     warnings.warn(
#         DeprecationWarning(
#             "driver_logger() deprecated, you can use standard logging module instead."
#         )
#     )
#     return logging.getLogger("mapchete.formats.drivers." + dname)


import logging
import pytest
from mapchete.log import user_process_logger, driver_logger
"""Test for custom logging functions."""




def test_user_process_logger():
    with pytest.deprecated_call():
        logger = user_process_logger(__name__)
        assert isinstance(logger, logging.Logger)
        assert logger.name == "mapchete.user_process.test_log"


def test_driver_logger():
    with pytest.deprecated_call():

# Path: mapchete/log.py
# def user_process_logger(pname):
#     """Logger to be used within a user process file."""
#     warnings.warn(
#         DeprecationWarning(
#             "user_process_logger() deprecated, you can use standard logging module "
#             "instead."
#         )
#     )
#     return logging.getLogger("mapchete.user_process." + pname)
# 
# def driver_logger(dname):
#     """Logger to be used from a driver plugin."""
#     warnings.warn(
#         DeprecationWarning(
#             "driver_logger() deprecated, you can use standard logging module instead."
#         )
#     )
#     return logging.getLogger("mapchete.formats.drivers." + dname)


# Path: test/test_log.py
import logging
import pytest
from mapchete.log import user_process_logger, driver_logger

"""Test for custom logging functions."""




def test_user_process_logger():
    with pytest.deprecated_call():
        logger = user_process_logger(__name__)
        assert isinstance(logger, logging.Logger)
        assert logger.name == "mapchete.user_process.test_log"


def test_driver_logger():
    with pytest.deprecated_call():

        logger = driver_logger(__name__)