改善日志模块.

Signed-off-by: Jack <jack.wgm@gmail.com>