title: How to write to Kafka from Python logging module?
body: <p>I've got a large complex application that is heavily using the Python logging module.</p>
  
  <p>I need to start getting these logs into a Kafka cluster, and need to ensure that I don't change the data along the way.</p>
  
  <p>To me the ideal solution is to just create a new handler for Kafka - and allow the logs to go to both the old logging solution and kafka in parallel for a while.  Then eventually shut off the old logging handlers and just send to Kafka.</p>
  
  <p>However, I don't see any kafka logging handlers - only kafka clients.  Adding a kafka client would mean tracking down every current logging call and adding a separate call to the new kafka client.  Getting identical results will be difficult.</p>