SamJia edited a comment on issue #21013: URL: https://github.com/apache/airflow/issues/21013#issuecomment-1018624809
> You are using logging module improperly. By `logging,info` (and similar) you are logging stuff to "root" logger: > > https://docs.python.org/3/library/logging.html#logging.info > > > logging.info(msg, *args, **kwargs)ΒΆ > > Logs a message with level INFO on the root logger. The arguments are interpreted as for debug(). > > Instead you should log message to "airflow.task" logger if you want messages to show up in task log: > > ``` > logger = logging.getLogger("airflow.task") > logger.info(...) > `` > ``` Actually I have tried to use logger `airflow.task`, but also failed   Moreover, considering the level and handler of `root` logger are replaced with the level and handler of `airflow.task` logger, I think they should work same in task operators. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
