am f1c534b7: am eb560133: Merge "Share log writing code."

* commit 'f1c534b7d74e0b339c903732bf1b86506f20845a':
  Share log writing code.