add logging to main settings.