adding tests and address code review comments
Merge branch 'juwang-logfactory' into juwang-logfactory-perflog
override close() in LogScope to avoid throwing exception
Merge branch 'juwang-logfactory' into juwang-logfactory-perflog
merge change from logFactory branch and update the code