Airflow Logging

One way to write to logs in Airflow is to return a string from PythonOperator, for example, on line 44 here .

Are there other ways that allow me to write to the airflow log files? I found that print statements are not logged.

+5
source share
1 answer

You can import the registration module into your code and write to the log in this way

import logging logging.info('Hello') 
+6
source

Source: https://habr.com/ru/post/1258439/


All Articles