title: Doesn't the airflow ecosystem share a single root logger?
body: <p>I am trying to ship all airflow logs to kafka by attaching a new handler to the root logger, but not all logs are being published. Do I need to configure something else here?</p>
  <p>This is what I'm doing:</p>
  <p><strong>custom_log_config.py</strong></p>
  <pre><code>LOGGING_CONFIG = deepcopy(DEFAULT_LOGGING_CONFIG)
  
  # Configure a new handler for publishing logs to kafka
  environment = get_app_env()
  LOGGING_CONFIG[&quot;handlers&quot;][&quot;kafka_handler&quot;] = {
      &quot;class&quot;: &quot;com.test.log_handler.KafkaHandler&quot;,
      &quot;formatter&quot;: &quot;airflow&quot;,
      &quot;version&quot;: environment.version,
      &quot;log_file&quot;: log_file,
      &quot;filters&quot;: [&quot;mask_secrets&quot;],
  }
  
  # Attach handler to root logger of airflow
  LOGGING_CONFIG[&quot;root&quot;][&quot;handlers&quot;].append(&quot;kafka_handler&quot;)
  </code></pre>
  <p>And finally I'm setting airflow configs to use the new logger class described above:</p>
  <pre><code>airflow.logging__logging_config_class=com.test.log_handler.custom_log_config.LOGGING_CONFIG
  </code></pre>
  <p>While some logs do flow to kafka, I'm missing task run logs (eg. following loggers: taskinstance.py, standard_task_runner.py, cli_action_loggers.py)</p>