Did the Buddha ever teach logic? Was western logic ever taught by the Buddha? How about Indian logic? How can  logic be useful in the Eightfold Path? How could logic be a hindrance? How could logic be a blessing?
In one sense the Buddha advised against using deductive reasoning to gain certainty about what brings an end to suffering. From the kalama sutta :


  
  "It is proper for you, Kalamas, to doubt, to be uncertain; uncertainty has arisen in you about what is doubtful. Come, Kalamas. Do not go upon what has been acquired by repeated hearing; nor upon tradition; nor upon rumor; nor upon what is in a scripture; nor upon surmise; nor upon an axiom; nor upon specious reasoning; nor upon a bias towards a notion that has been pondered over; nor upon another's seeming ability; nor upon the consideration, 'The monk is our teacher.' Kalamas, when you yourselves know: 'These things are good; these things are not blamable; these things are praised by the wise; undertaken and observed, these things lead to benefit and happiness,' enter on and abide in them.
  


Note that logical deduction requires axioms to deduce conclusions from. Logical reasoning doesn't tell us if the axioms are true and therefore it doesn't tell us if the conclusions are true.