title: "logging" images
body: <p>I'm writing a scientific program that has some intermediate results (plots and images) that I'd like to log (additional to the usual text messages).</p>
  
  <p>I like python's logging interface a lot, so I'm wondering if there is a possibility to use it to create log files that include images.</p>
  
  <p>The first idea that came to my mind was creating a log file as a SVG, so the log text is machine readable and the images can be included easily.</p>
  
  <p>Is there a better approach to make this possible?</p>