Factor: move log related code to another repo

Signed-off-by: Boqun Feng <boqun.feng@gmail.com>