Check Logger level before logging.