Improve trace logging messages.
closes #160.