noun /ˈlɒdʒɪk,ˈlɑːdʒɪk/
a) A method of human thought that involves thinking in a linear, step-by-step manner about how a problem can be solved. Logic is the basis of many principles including the scientific method.
Its hard to work out his system of logic.
Fred is designing the logic for the new controller.
Wikipedia foundation.