Option to log switch events