setting logging off in preview mode