checks for logger