Log a switch turning off or on