Added preference settings to configure logging