Add new API chewing_set_logger
Add unit test for logger