Logging for scientific computing: debugging, performance, trust

Having spent a year and a half working on image processing pipeline for gene sequencing, I spent a lot of time finding obscure bugs and fixing performance problems. Eventually I figured out how to make those tasks easier by using logging—here’s a summary of what I learned: