티스토리 뷰

공부

[python] import logging

승가비 2024. 4. 19. 00:16
728x90
import logging    

logging.debug('This is a debug message')
logging.info('This is an info message')
logging.warning('This is a warning message')
logging.error('This is an error message')
logging.critical('This is a critical message')

https://stackoverflow.com/questions/40120474/writing-to-airflow-logs

 

Writing to Airflow Logs

One way to write to the logs in Airflow is to return a string from a PythonOperator like on line 44 here. Are there other ways that allow me to write to the airflow log files? I've found that print

stackoverflow.com

 

728x90
댓글