add logging option and update to 0.0.4

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>