How to use "logic" in a sentence

Sentences

What possible excuse could he have? What twisted logic could justify this sort of sick behavior? It was crazy, hateful.

"Stop trying to herd the facts into neat corrals of logic."