bnclabs / gostore

Storage algorithms.
MIT License
35 stars 4 forks source link

Component level logging. #64

Closed prataprc closed 6 years ago

prataprc commented 6 years ago

Support disabling or enabling component level logging for llrb lsm malloc bogn bubt. Proposal is to export an API, LogComponents() whose godoc should describe supported components to log.

Subsequently each sub-package under gostore source should use a local variant of infof, errorf, warnf, etc... to enable or disable log.