add log interface
Merge pull request #14 from ytake/dev0.2

add log interface