Merge changes I5731d640,Ia874b57a

* changes:
  logd: make LogBuffer an interface
  logd: refactor LastLogTimes a bit