Apache Airflow - customize logging format

ⅰ亾dé卋堺 提交于 2019-12-05 14:39:51
Priyank Mehta

You need to change the settings.py file in the airflow package to change the log format

  • Update settings.py (after LOGGING_LEVEL add below line):

    LOG_FORMAT = os.path.expanduser(conf.get('core', 'LOG_FORMAT'))

  • Update airflow.cfg configuration file: Add line under [core]:

    LOG_FORMAT = "%(asctime)s logLevel=%(levelname)s logger=%(name)s - %(message)s"

  • Restart webserver and scheduler services

    Try the approach as mentioned in the answer here to change logging level

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!