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
'공부 (@Deprecated)' 카테고리의 다른 글
| [mysql] SELECT DATE_FORMAT(d, "%Y%m%d%h%i"); (1) | 2024.04.19 |
|---|---|
| [airflow] expose_config = True (0) | 2024.04.19 |
| [mysql] blob TINYBLOB, BLOB, MEDIUMBLOB, LONGBLOB (0) | 2024.04.19 |
| [mysql] INSERT INTO table (a, b, c) VALUES (1, 2, 3), (4, 5, 6); (0) | 2024.04.19 |
| [mysql] REPEAT(CONCAT(email, ','), 3) (1) | 2024.04.19 |