fix logger bug.

Signed-off-by: jarod.w <wl.jarod@gmail.com>
add basic main function

Signed-off-by: jarod.w <wl.jarod@gmail.com>