test for logger

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
bufix for logger

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>