make logger an interface

make logger an interface

add test, use errLog

revert api change, update documentation

rm unneeded SetLogger