stubbing for logger