Add logging

Refs #1238