Airflow + python logging module doesn't write to log file

Set logging_level = INFO instead of WARN in airflow.cfg and you should be able to see your logs.

Reason

logging_level logs when airflow events reach those log levels. For example, an airflow operator getting deprecated will generate an airflow event that gets logged as WARN.

As far as your code is concerned, they are just normal python statements that you want to get logged. So they actually fall under INFO log_level in airflow. So if you set your logging_level to INFO, you should be able to see your logging statements.