There is something that is a bit unclear to me reg...
# ask-community
a
There is something that is a bit unclear to me regarding the prefect loggers. What problem does it solve? What is the difference between:
Copy code
@task
def mytask():
    logger = prefect.context.get('logger')
    <http://logger.info|logger.info>('hello')
and
Copy code
logger = logging.getLogger(__name__)

@task
def mytask():
    <http://logger.info|logger.info>('hello')
i.e. What is the point of using a prefect-provided logger instead of regular python logging loggers?