switch log statements