Improve logging shared preferences ex

Refs #1094