GitHub user hlecco added a comment to the discussion: Be able to use loguru as logging/logger
For anyone that may come across this thread and is trying to be able to see loguru logs on Airflow tasks, a quick workaround is to propagate loguru logs to the standard logging library. It is described as such on the [loguru README](https://github.com/Delgan/loguru): ```python import logging from loguru import logger class PropagateHandler(logging.Handler): def emit(self, record: logging.LogRecord) -> None: logging.getLogger(record.name).handle(record) logger.add(PropagateHandler(), format="{message}") ``` GitHub link: https://github.com/apache/airflow/discussions/36980#discussioncomment-12415464 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
