add logger
add eventlooper and an example