added check for logger definition within classes.