Formally, logic refers to the branch of mathematics.
In the computer world, it is a term used to describe a group of digital hardware - collections of gates, flip-flops, etc.