added sanity test for log
fixed syntax errors
use relative import