[WIP] add log extensions.

TODO: add tests, update doc.