added spec for logger